Don't make cells smaller than they are.
authorFilip Navara <filip.navara@gmail.com>
Sat, 26 Nov 2005 15:23:25 +0000 (15:23 +0000)
committerFilip Navara <filip.navara@gmail.com>
Sat, 26 Nov 2005 15:23:25 +0000 (15:23 +0000)
svn path=/trunk/; revision=19638

reactos/boot/freeldr/freeldr/reactos/binhive.c

index f9ea51f..584a11f 100644 (file)
@@ -820,7 +820,7 @@ CmiAllocateCell (PREGISTRY_HIVE RegistryHive,
     }
 
   memset(*Block, 0, CellSize);
-  ((PCELL_HEADER)(*Block))->CellSize = -CellSize;
+  ((PCELL_HEADER)(*Block))->CellSize *= -1;
 
   return TRUE;
 }