- Fixed the test for the dirty bitmap size.  
- Fixed the length to copy the old dirty bitmap.
Modified: trunk/reactos/ntoskrnl/cm/regfile.c

Modified: trunk/reactos/ntoskrnl/cm/regfile.c
--- trunk/reactos/ntoskrnl/cm/regfile.c	2005-11-17 13:46:07 UTC (rev 19293)
+++ trunk/reactos/ntoskrnl/cm/regfile.c	2005-11-17 17:29:36 UTC (rev 19294)
@@ -3293,7 +3293,7 @@
 
   /* Grow bitmap if necessary */
   if (!IsNoFileHive(RegistryHive) &&
-      BitmapSize > RegistryHive->DirtyBitMap.SizeOfBitMap)
+      BitmapSize > RegistryHive->DirtyBitMap.SizeOfBitMap / 8)
     {
       PULONG BitmapBuffer;
 
@@ -3306,7 +3306,7 @@
       RtlZeroMemory(BitmapBuffer, BitmapSize);
       RtlCopyMemory(BitmapBuffer,
 		    RegistryHive->DirtyBitMap.Buffer,
-		    RegistryHive->DirtyBitMap.SizeOfBitMap);
+		    RegistryHive->DirtyBitMap.SizeOfBitMap / 8);
       ExFreePool(RegistryHive->BitmapBuffer);
       RegistryHive->BitmapBuffer = BitmapBuffer;
       RtlInitializeBitMap(&RegistryHive->DirtyBitMap,