PVOID Buffer;
/* Do the allocation */
- Buffer = ExAllocatePoolWithTag(PagedPool, Size, 'btbO');
+ Buffer = ExAllocatePoolWithTag(PagedPool, Size, TAG_OBJECT_TABLE);
if (Buffer)
{
/* Clear the memory */
PVOID Buffer;
/* Do the allocation */
- Buffer = ExAllocatePoolWithTag(PagedPool, Size, 'btbO');
+ Buffer = ExAllocatePoolWithTag(PagedPool, Size, TAG_OBJECT_TABLE);
if (Buffer)
{
/* Check if we have a process to charge quota */
IN SIZE_T Size)
{
/* Free the buffer */
- ExFreePool(Buffer);
+ ExFreePoolWithTag(Buffer, TAG_OBJECT_TABLE);
if (Process)
{
/* FIXME: Release quota */
}
/* Free the actual table and check if we need to release quota */
- ExFreePool(HandleTable);
+ ExFreePoolWithTag(HandleTable, TAG_OBJECT_TABLE);
if (Process)
{
/* FIXME: TODO */
/* Allocate the table */
HandleTable = ExAllocatePoolWithTag(PagedPool,
sizeof(HANDLE_TABLE),
- 'btbO');
+ TAG_OBJECT_TABLE);
if (!HandleTable) return NULL;
/* Check if we have a process */
if (!HandleTableTable)
{
/* Failed, free the table */
- ExFreePool(HandleTable);
+ ExFreePoolWithTag(HandleTable, TAG_OBJECT_TABLE);
return NULL;
}