mirror of
https://github.com/reactos/reactos.git
synced 2025-08-07 00:03:03 +00:00
fix formatting
svn path=/trunk/; revision=32080
This commit is contained in:
parent
7901978873
commit
3a1bd096c1
1 changed files with 31 additions and 31 deletions
|
@ -45,8 +45,8 @@ CmpFree (PVOID Ptr, IN ULONG Quota)
|
||||||
|
|
||||||
static BOOLEAN
|
static BOOLEAN
|
||||||
RegImportValue (PHHIVE Hive,
|
RegImportValue (PHHIVE Hive,
|
||||||
PCM_KEY_VALUE ValueCell,
|
PCM_KEY_VALUE ValueCell,
|
||||||
FRLDRHKEY Key)
|
FRLDRHKEY Key)
|
||||||
{
|
{
|
||||||
PVOID DataCell;
|
PVOID DataCell;
|
||||||
PWCHAR wName;
|
PWCHAR wName;
|
||||||
|
@ -73,8 +73,8 @@ RegImportValue (PHHIVE Hive,
|
||||||
{
|
{
|
||||||
wName = MmHeapAlloc (ValueCell->NameLength + sizeof(WCHAR));
|
wName = MmHeapAlloc (ValueCell->NameLength + sizeof(WCHAR));
|
||||||
memcpy (wName,
|
memcpy (wName,
|
||||||
ValueCell->Name,
|
ValueCell->Name,
|
||||||
ValueCell->NameLength);
|
ValueCell->NameLength);
|
||||||
wName[ValueCell->NameLength / sizeof(WCHAR)] = 0;
|
wName[ValueCell->NameLength / sizeof(WCHAR)] = 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -86,16 +86,16 @@ RegImportValue (PHHIVE Hive,
|
||||||
if (DataLength <= sizeof(HCELL_INDEX) && (ValueCell->DataLength & REG_DATA_IN_OFFSET))
|
if (DataLength <= sizeof(HCELL_INDEX) && (ValueCell->DataLength & REG_DATA_IN_OFFSET))
|
||||||
{
|
{
|
||||||
Error = RegSetValue(Key,
|
Error = RegSetValue(Key,
|
||||||
wName,
|
wName,
|
||||||
ValueCell->Type,
|
ValueCell->Type,
|
||||||
(PCHAR)&ValueCell->Data,
|
(PCHAR)&ValueCell->Data,
|
||||||
DataLength);
|
DataLength);
|
||||||
if (Error != ERROR_SUCCESS)
|
if (Error != ERROR_SUCCESS)
|
||||||
{
|
{
|
||||||
DbgPrint((DPRINT_REGISTRY, "RegSetValue() failed!\n"));
|
DbgPrint((DPRINT_REGISTRY, "RegSetValue() failed!\n"));
|
||||||
MmHeapFree (wName);
|
MmHeapFree (wName);
|
||||||
return FALSE;
|
return FALSE;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
@ -103,17 +103,17 @@ RegImportValue (PHHIVE Hive,
|
||||||
DbgPrint((DPRINT_REGISTRY, "DataCell: %x\n", DataCell));
|
DbgPrint((DPRINT_REGISTRY, "DataCell: %x\n", DataCell));
|
||||||
|
|
||||||
Error = RegSetValue (Key,
|
Error = RegSetValue (Key,
|
||||||
wName,
|
wName,
|
||||||
ValueCell->Type,
|
ValueCell->Type,
|
||||||
DataCell,
|
DataCell,
|
||||||
DataLength);
|
DataLength);
|
||||||
|
|
||||||
if (Error != ERROR_SUCCESS)
|
if (Error != ERROR_SUCCESS)
|
||||||
{
|
{
|
||||||
DbgPrint((DPRINT_REGISTRY, "RegSetValue() failed!\n"));
|
DbgPrint((DPRINT_REGISTRY, "RegSetValue() failed!\n"));
|
||||||
MmHeapFree (wName);
|
MmHeapFree (wName);
|
||||||
return FALSE;
|
return FALSE;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
MmHeapFree (wName);
|
MmHeapFree (wName);
|
||||||
|
@ -304,8 +304,8 @@ RegImportBinaryHive(PCHAR ChunkBase,
|
||||||
|
|
||||||
/* Open 'System' key */
|
/* Open 'System' key */
|
||||||
Error = RegOpenKey(NULL,
|
Error = RegOpenKey(NULL,
|
||||||
L"\\Registry\\Machine\\SYSTEM",
|
L"\\Registry\\Machine\\SYSTEM",
|
||||||
&SystemKey);
|
&SystemKey);
|
||||||
if (Error != ERROR_SUCCESS)
|
if (Error != ERROR_SUCCESS)
|
||||||
{
|
{
|
||||||
DbgPrint((DPRINT_REGISTRY, "Failed to open 'system' key!\n"));
|
DbgPrint((DPRINT_REGISTRY, "Failed to open 'system' key!\n"));
|
||||||
|
@ -320,16 +320,16 @@ RegImportBinaryHive(PCHAR ChunkBase,
|
||||||
DbgPrint((DPRINT_REGISTRY, "SubKeyCounts: %x\n", KeyCell->SubKeyCounts[Stable]));
|
DbgPrint((DPRINT_REGISTRY, "SubKeyCounts: %x\n", KeyCell->SubKeyCounts[Stable]));
|
||||||
|
|
||||||
for (i = 0; i < KeyCell->SubKeyCounts[Stable]; i++)
|
for (i = 0; i < KeyCell->SubKeyCounts[Stable]; i++)
|
||||||
{
|
{
|
||||||
DbgPrint((DPRINT_REGISTRY, "Cell[%d]: %x\n", i, HashCell->List[i].Cell));
|
DbgPrint((DPRINT_REGISTRY, "Cell[%d]: %x\n", i, HashCell->List[i].Cell));
|
||||||
|
|
||||||
SubKeyCell = (PCM_KEY_NODE)HvGetCell (Hive, HashCell->List[i].Cell);
|
SubKeyCell = (PCM_KEY_NODE)HvGetCell (Hive, HashCell->List[i].Cell);
|
||||||
|
|
||||||
DbgPrint((DPRINT_REGISTRY, "SubKeyCell[%d]: %x\n", i, SubKeyCell));
|
DbgPrint((DPRINT_REGISTRY, "SubKeyCell[%d]: %x\n", i, SubKeyCell));
|
||||||
|
|
||||||
if (!RegImportSubKey(Hive, SubKeyCell, SystemKey))
|
if (!RegImportSubKey(Hive, SubKeyCell, SystemKey))
|
||||||
return FALSE;
|
return FALSE;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
return TRUE;
|
return TRUE;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue