Fix splitting of cells (noticed by Hartmut).

svn path=/trunk/; revision=19642
This commit is contained in:
Filip Navara 2005-11-26 16:36:18 +00:00
parent 405f0b60f1
commit fdbe611710
3 changed files with 3 additions and 0 deletions

View file

@ -809,6 +809,7 @@ 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,

View file

@ -3417,6 +3417,7 @@ 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,

View file

@ -829,6 +829,7 @@ 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,