X-Git-Url: https://git.reactos.org/?p=reactos.git;a=blobdiff_plain;f=reactos%2Fntoskrnl%2Fcm%2Fregfile.c;h=237638af3f4b35c01b8d27968e57522c78a047ea;hp=85b34093a965326b310d4a3ca58483000ba88152;hb=a3ac3f00d6bec3b34d7a1ca6e18d094ca030b5e8;hpb=0a92dbc27d80df7e4a844bef86fd023b058a5530;ds=inline diff --git a/reactos/ntoskrnl/cm/regfile.c b/reactos/ntoskrnl/cm/regfile.c index 85b34093a96..237638af3f4 100644 --- a/reactos/ntoskrnl/cm/regfile.c +++ b/reactos/ntoskrnl/cm/regfile.c @@ -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;