if (!Kcb->PrivateAlloc)
{
/* Free it from the pool */
- ExFreePoolWithTag(Kcb, TAG_CM);
+ CmpFree(Kcb, 0);
return;
}
}
/* Free the page */
- ExFreePoolWithTag(AllocPage, TAG_CM);
+ CmpFree(AllocPage, 0);
}
/* Release the lock */
}
/* Allocate an allocation page */
- AllocPage = ExAllocatePoolWithTag(PagedPool, PAGE_SIZE, TAG_CM);
+ AllocPage = CmpAllocate(PAGE_SIZE, TRUE, TAG_CM);
if (AllocPage)
{
/* Set default entries */
}
/* Allocate a KCB only */
- CurrentKcb = ExAllocatePoolWithTag(PagedPool,
- sizeof(CM_KEY_CONTROL_BLOCK),
- TAG_CM);
+ CurrentKcb = CmpAllocate(sizeof(CM_KEY_CONTROL_BLOCK),
+ TRUE,
+ TAG_CM);
if (CurrentKcb)
{
/* Set it up */
}
/* Allocate an allocation page */
- AllocPage = ExAllocatePoolWithTag(PagedPool, PAGE_SIZE, TAG_CM);
+ AllocPage = CmpAllocate(PAGE_SIZE, TRUE, TAG_CM);
if (AllocPage)
{
/* Set default entries */
}
/* Now free the page */
- ExFreePoolWithTag(AllocPage, TAG_CM);
+ CmpFree(AllocPage, 0);
}
/* Release the lock */