mirror of
https://github.com/ApfelTeeSaft/reactos.git
synced 2026-09-02 19:26:32 +00:00
- Fixed the test for the dirty bitmap size.
- Fixed the length to copy the old dirty bitmap. svn path=/trunk/; revision=19294
This commit is contained in:
@@ -3293,7 +3293,7 @@ CmiAddBin(PREGISTRY_HIVE RegistryHive,
|
||||
|
||||
/* Grow bitmap if necessary */
|
||||
if (!IsNoFileHive(RegistryHive) &&
|
||||
BitmapSize > RegistryHive->DirtyBitMap.SizeOfBitMap)
|
||||
BitmapSize > RegistryHive->DirtyBitMap.SizeOfBitMap / 8)
|
||||
{
|
||||
PULONG BitmapBuffer;
|
||||
|
||||
@@ -3306,7 +3306,7 @@ CmiAddBin(PREGISTRY_HIVE RegistryHive,
|
||||
RtlZeroMemory(BitmapBuffer, BitmapSize);
|
||||
RtlCopyMemory(BitmapBuffer,
|
||||
RegistryHive->DirtyBitMap.Buffer,
|
||||
RegistryHive->DirtyBitMap.SizeOfBitMap);
|
||||
RegistryHive->DirtyBitMap.SizeOfBitMap / 8);
|
||||
ExFreePool(RegistryHive->BitmapBuffer);
|
||||
RegistryHive->BitmapBuffer = BitmapBuffer;
|
||||
RtlInitializeBitMap(&RegistryHive->DirtyBitMap,
|
||||
|
||||
Reference in New Issue
Block a user