You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
85 lines
1.5 KiB
85 lines
1.5 KiB
/*++
|
|
|
|
Copyright (c) 2001-2002 Microsoft Corporation
|
|
|
|
Module Name:
|
|
|
|
CmnDbgK.c
|
|
|
|
Abstract:
|
|
|
|
Implementation of driver-specific routines declared in HttpCmn.h
|
|
|
|
Author:
|
|
|
|
George V. Reilly (GeorgeRe) 07-Dec-2001
|
|
|
|
Revision History:
|
|
|
|
--*/
|
|
|
|
|
|
#include "precomp.h"
|
|
|
|
|
|
|
|
PVOID
|
|
HttpCmnAllocate(
|
|
IN POOL_TYPE PoolType,
|
|
IN SIZE_T NumBytes,
|
|
IN ULONG PoolTag,
|
|
IN PCSTR pFileName,
|
|
IN USHORT LineNumber)
|
|
{
|
|
#if DBG
|
|
return UlDbgAllocatePool(
|
|
PoolType,
|
|
NumBytes,
|
|
PoolTag,
|
|
pFileName,
|
|
LineNumber,
|
|
NULL);
|
|
#else // !DBG
|
|
UNREFERENCED_PARAMETER(pFileName);
|
|
UNREFERENCED_PARAMETER(LineNumber);
|
|
|
|
return ExAllocatePoolWithTagPriority(
|
|
PoolType,
|
|
NumBytes,
|
|
PoolTag,
|
|
LowPoolPriority
|
|
);
|
|
#endif // !DBG
|
|
} // HttpCmnAlloc
|
|
|
|
|
|
VOID
|
|
HttpCmnFree(
|
|
IN PVOID pMem,
|
|
IN ULONG PoolTag,
|
|
IN PCSTR pFileName,
|
|
IN USHORT LineNumber)
|
|
{
|
|
#if DBG
|
|
UlDbgFreePool(
|
|
pMem,
|
|
PoolTag,
|
|
pFileName,
|
|
LineNumber,
|
|
PagedPool,
|
|
0,
|
|
NULL
|
|
);
|
|
#else // !DBG
|
|
UNREFERENCED_PARAMETER(pFileName);
|
|
UNREFERENCED_PARAMETER(LineNumber);
|
|
|
|
# if USE_FREE_POOL_WITH_TAG
|
|
ExFreePoolWithTag(pMem, PoolTag);
|
|
# else
|
|
UNREFERENCED_PARAMETER(PoolTag);
|
|
ExFreePool(pMem);
|
|
# endif
|
|
#endif // !DBG
|
|
|
|
} // HttpCmnFree
|