Author: tkreuzer Date: Mon Dec 17 12:27:21 2012 New Revision: 57937
URL: http://svn.reactos.org/svn/reactos?rev=57937&view=rev Log: [CMLIB] Fix / silence some warnings/errors detected with VS-analyze
Modified: trunk/reactos/lib/cmlib/hivecell.c trunk/reactos/lib/cmlib/hiveinit.c
Modified: trunk/reactos/lib/cmlib/hivecell.c URL: http://svn.reactos.org/svn/reactos/trunk/reactos/lib/cmlib/hivecell.c?rev=57... ============================================================================== --- trunk/reactos/lib/cmlib/hivecell.c [iso-8859-1] (original) +++ trunk/reactos/lib/cmlib/hivecell.c [iso-8859-1] Mon Dec 17 12:27:21 2012 @@ -235,10 +235,10 @@ /* 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) {
Modified: trunk/reactos/lib/cmlib/hiveinit.c URL: http://svn.reactos.org/svn/reactos/trunk/reactos/lib/cmlib/hiveinit.c?rev=57... ============================================================================== --- trunk/reactos/lib/cmlib/hiveinit.c [iso-8859-1] (original) +++ trunk/reactos/lib/cmlib/hiveinit.c [iso-8859-1] Mon Dec 17 12:27:21 2012 @@ -119,7 +119,6 @@ RegistryHive->Storage[Stable].FreeDisplay[Index] = HCELL_NIL; RegistryHive->Storage[Volatile].FreeDisplay[Index] = HCELL_NIL; } - RtlInitializeBitMap(&RegistryHive->DirtyVector, NULL, 0);
return STATUS_SUCCESS; }