[CMLIB]
authorTimo Kreuzer <timo.kreuzer@reactos.org>
Sat, 31 May 2014 15:34:21 +0000 (15:34 +0000)
committerTimo Kreuzer <timo.kreuzer@reactos.org>
Sat, 31 May 2014 15:34:21 +0000 (15:34 +0000)
Fix build (and warnings)

svn path=/trunk/; revision=63513

reactos/lib/cmlib/hivewrt.c

index a0e529f..6110806 100644 (file)
@@ -14,8 +14,8 @@ HvpWriteLog(
    PHHIVE RegistryHive)
 {
    ULONG FileOffset;
    PHHIVE RegistryHive)
 {
    ULONG FileOffset;
-   UINT BufferSize;
-   UINT BitmapSize;
+   UINT32 BufferSize;
+   UINT32 BitmapSize;
    PUCHAR Buffer;
    PUCHAR Ptr;
    ULONG BlockIndex;
    PUCHAR Buffer;
    PUCHAR Ptr;
    ULONG BlockIndex;
@@ -42,7 +42,7 @@ HvpWriteLog(
    BufferSize = HV_LOG_HEADER_SIZE + sizeof(ULONG) + BitmapSize;
    BufferSize = ROUND_UP(BufferSize, HV_BLOCK_SIZE);
 
    BufferSize = HV_LOG_HEADER_SIZE + sizeof(ULONG) + BitmapSize;
    BufferSize = ROUND_UP(BufferSize, HV_BLOCK_SIZE);
 
-   DPRINT("Bitmap size %lu  buffer size: %lu\n", BitmapSize, BufferSize);
+   DPRINT("Bitmap size %u  buffer size: %u\n", BitmapSize, BufferSize);
 
    Buffer = RegistryHive->Allocate(BufferSize, TRUE, TAG_CM);
    if (Buffer == NULL)
 
    Buffer = RegistryHive->Allocate(BufferSize, TRUE, TAG_CM);
    if (Buffer == NULL)