mirror of
https://github.com/reactos/reactos.git
synced 2024-10-05 17:06:29 +00:00
Fix splitting of cells (noticed by Hartmut).
svn path=/trunk/; revision=19642
This commit is contained in:
parent
405f0b60f1
commit
fdbe611710
|
@ -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,
|
||||
|
|
|
@ -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,
|
||||
|
|
|
@ -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,
|
||||
|
|
Loading…
Reference in a new issue