/* 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)
{
HCELL_INDEX CMAPI
HvAllocateCell(
PHHIVE RegistryHive,
- SIZE_T Size,
+ ULONG Size,
HSTORAGE_TYPE Storage,
HCELL_INDEX Vicinity)
{
CellRef->StaticCount++;
return TRUE;
}
-
+
/* FIXME: TODO */
DPRINT1("ERROR: Too many references\n");
while (TRUE);
/* Any references? */
if (CellRef->StaticCount > 0)
- {
+ {
/* Sanity check */
ASSERT(CellRef->StaticCount <= STATIC_CELL_PAIR_COUNT);
-
+
/* Loop them */
for (i = 0; i < CellRef->StaticCount;i++)
{
/* Free again */
CellRef->StaticCount = 0;
}
-}
\ No newline at end of file
+}