Revert Filip's last 4 changes on his request as they break booting

svn path=/trunk/; revision=19648
This commit is contained in:
Thomas Bluemel 2005-11-26 17:43:06 +00:00
parent 0a92dbc27d
commit a3ac3f00d6
3 changed files with 3 additions and 6 deletions

View file

@ -809,7 +809,6 @@ CmiAllocateCell (PREGISTRY_HIVE RegistryHive,
{
NewBlock = (PCELL_HEADER) ((ULONG)NewBlock + CellSize);
NewBlock->CellSize = ((PCELL_HEADER) (*Block))->CellSize - CellSize;
((PCELL_HEADER) (*Block))->CellSize = CellSize;
CmiAddFree (RegistryHive,
NewBlock,
*pBlockOffset + CellSize,
@ -821,7 +820,7 @@ CmiAllocateCell (PREGISTRY_HIVE RegistryHive,
}
memset(*Block, 0, CellSize);
((PCELL_HEADER)(*Block))->CellSize *= -1;
((PCELL_HEADER)(*Block))->CellSize = -CellSize;
return TRUE;
}

View file

@ -3417,7 +3417,6 @@ CmiAllocateCell (PREGISTRY_HIVE RegistryHive,
{
NewCell = (PCELL_HEADER) ((ULONG_PTR) NewCell + CellSize);
NewCell->CellSize = ((PCELL_HEADER) (*Cell))->CellSize - CellSize;
((PCELL_HEADER) (*Cell))->CellSize = CellSize;
CmiAddFree(RegistryHive,
NewCell,
*CellOffset + CellSize,
@ -3432,7 +3431,7 @@ CmiAllocateCell (PREGISTRY_HIVE RegistryHive,
RtlZeroMemory(*Cell,
CellSize);
((PCELL_HEADER) (*Cell))->CellSize *= -1;
((PCELL_HEADER) (*Cell))->CellSize = -CellSize;
}
return STATUS_SUCCESS;

View file

@ -829,7 +829,6 @@ CmiAllocateCell (PREGISTRY_HIVE RegistryHive,
{
NewBlock = (PCELL_HEADER) ((ULONG_PTR) NewBlock + CellSize);
NewBlock->CellSize = ((PCELL_HEADER) (*Block))->CellSize - CellSize;
((PCELL_HEADER) (*Block))->CellSize = CellSize;
CmiAddFree (RegistryHive,
NewBlock,
*pBlockOffset + CellSize,
@ -841,7 +840,7 @@ CmiAllocateCell (PREGISTRY_HIVE RegistryHive,
}
memset(*Block, 0, CellSize);
((PCELL_HEADER)(*Block))->CellSize *= -1;
((PCELL_HEADER)(*Block))->CellSize = -CellSize;
return TRUE;
}