Revert Filip's last 4 changes on his request as they break booting
authorThomas Bluemel <thomas@reactsoft.com>
Sat, 26 Nov 2005 17:43:06 +0000 (17:43 +0000)
committerThomas Bluemel <thomas@reactsoft.com>
Sat, 26 Nov 2005 17:43:06 +0000 (17:43 +0000)
svn path=/trunk/; revision=19648

reactos/boot/freeldr/freeldr/reactos/binhive.c
reactos/ntoskrnl/cm/regfile.c
reactos/tools/mkhive/binhive.c

index b062b96..f9ea51f 100644 (file)
@@ -809,7 +809,6 @@ 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,
@@ -821,7 +820,7 @@ CmiAllocateCell (PREGISTRY_HIVE RegistryHive,
     }
 
   memset(*Block, 0, CellSize);
-  ((PCELL_HEADER)(*Block))->CellSize *= -1;
+  ((PCELL_HEADER)(*Block))->CellSize = -CellSize;
 
   return TRUE;
 }
index 85b3409..237638a 100644 (file)
@@ -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;
index 6b3dfb8..6b999f5 100644 (file)
@@ -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;
 }