X-Git-Url: https://git.reactos.org/?p=reactos.git;a=blobdiff_plain;f=reactos%2Ftools%2Fmkhive%2Fbinhive.c;h=6b999f50c1d0249889c2f48be0df89a282a3910a;hp=6b3dfb86f4d06bdc73a02fea6445f9836b25cd9f;hb=a3ac3f00d6bec3b34d7a1ca6e18d094ca030b5e8;hpb=0a92dbc27d80df7e4a844bef86fd023b058a5530 diff --git a/reactos/tools/mkhive/binhive.c b/reactos/tools/mkhive/binhive.c index 6b3dfb86f4d..6b999f50c1d 100644 --- a/reactos/tools/mkhive/binhive.c +++ b/reactos/tools/mkhive/binhive.c @@ -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; }