From: Timo Kreuzer Date: Mon, 17 Dec 2012 12:27:21 +0000 (+0000) Subject: [CMLIB] X-Git-Tag: backups/ros-csrss@60644~104^2~95 X-Git-Url: https://git.reactos.org/?p=reactos.git;a=commitdiff_plain;h=87bd443014fbd70140825425fd0239287345f3c8;ds=sidebyside [CMLIB] Fix / silence some warnings/errors detected with VS-analyze svn path=/trunk/; revision=57937 --- diff --git a/reactos/lib/cmlib/hivecell.c b/reactos/lib/cmlib/hivecell.c index b0e35aa3d1c..c3e3dbea41b 100644 --- a/reactos/lib/cmlib/hivecell.c +++ b/reactos/lib/cmlib/hivecell.c @@ -235,10 +235,10 @@ HvpRemoveFree( /* Something bad happened, print a useful trace info and bugcheck */ CMLTRACE(CMLIB_HCELL_DEBUG, "-- beginning of HvpRemoveFree trace --\n"); CMLTRACE(CMLIB_HCELL_DEBUG, "block we are about to free: %08x\n", CellIndex); - CMLTRACE(CMLIB_HCELL_DEBUG, "chosen free list index: %d\n", Index); + CMLTRACE(CMLIB_HCELL_DEBUG, "chosen free list index: %u\n", Index); for (FreeListIndex = 0; FreeListIndex < 24; FreeListIndex++) { - CMLTRACE(CMLIB_HCELL_DEBUG, "free list [%d]: ", FreeListIndex); + CMLTRACE(CMLIB_HCELL_DEBUG, "free list [%u]: ", FreeListIndex); pFreeCellOffset = &RegistryHive->Storage[Storage].FreeDisplay[FreeListIndex]; while (*pFreeCellOffset != HCELL_NIL) { diff --git a/reactos/lib/cmlib/hiveinit.c b/reactos/lib/cmlib/hiveinit.c index c043f266b78..6308e01024e 100644 --- a/reactos/lib/cmlib/hiveinit.c +++ b/reactos/lib/cmlib/hiveinit.c @@ -119,7 +119,6 @@ HvpCreateHive( RegistryHive->Storage[Stable].FreeDisplay[Index] = HCELL_NIL; RegistryHive->Storage[Volatile].FreeDisplay[Index] = HCELL_NIL; } - RtlInitializeBitMap(&RegistryHive->DirtyVector, NULL, 0); return STATUS_SUCCESS; }