From 05a7ea2883cbb6df6155dde4e5a122062e28c1b9 Mon Sep 17 00:00:00 2001 From: Casper Hornstrup Date: Tue, 18 Feb 2003 21:30:08 +0000 Subject: [PATCH] 2003-02-18 Casper S. Hornstrup * ntoskrnl/cm/regfile.c (CmiRemoveSubKey): Kill warnings. (CmiMergeFree): Ditto. svn path=/trunk/; revision=4175 --- reactos/ChangeLog | 5 +++++ reactos/ntoskrnl/cm/regfile.c | 6 +++--- 2 files changed, 8 insertions(+), 3 deletions(-) diff --git a/reactos/ChangeLog b/reactos/ChangeLog index ccae3aff160..aa9015bafb5 100644 --- a/reactos/ChangeLog +++ b/reactos/ChangeLog @@ -1,3 +1,8 @@ +2003-02-18 Casper S. Hornstrup + + * ntoskrnl/cm/regfile.c (CmiRemoveSubKey): Kill warnings. + (CmiMergeFree): Ditto. + 2003-02-10 Casper S. Hornstrup * include/structs.h (OSVERSIONINFOEXA): Expand definition of diff --git a/reactos/ntoskrnl/cm/regfile.c b/reactos/ntoskrnl/cm/regfile.c index d0066e3b0bb..bd74e449597 100644 --- a/reactos/ntoskrnl/cm/regfile.c +++ b/reactos/ntoskrnl/cm/regfile.c @@ -1992,7 +1992,7 @@ CmiRemoveSubKey(PREGISTRY_HIVE RegistryHive, } /* Remove the key from the parent key's hash block */ - if (ParentKey->KeyCell->HashTableOffset != -1) + if (ParentKey->KeyCell->HashTableOffset != (BLOCK_OFFSET) -1) { DPRINT1("ParentKey HashTableOffset %lx\n", ParentKey->KeyCell->HashTableOffset) HashBlock = CmiGetBlock(RegistryHive, @@ -2010,7 +2010,7 @@ CmiRemoveSubKey(PREGISTRY_HIVE RegistryHive, } /* Remove the key's hash block */ - if (SubKey->KeyCell->HashTableOffset != -1) + if (SubKey->KeyCell->HashTableOffset != (BLOCK_OFFSET) -1) { DPRINT1("SubKey HashTableOffset %lx\n", SubKey->KeyCell->HashTableOffset) HashBlock = CmiGetBlock(RegistryHive, @@ -2757,7 +2757,7 @@ CmiMergeFree(PREGISTRY_HIVE RegistryHive, ULONG BlockSize; ULONG BinSize; PHBIN Bin; - LONG i; + ULONG i; DPRINT("CmiMergeFree(Block %lx Offset %lx Size %lx) called\n", FreeBlock, FreeOffset, FreeBlock->CellSize);