- Fix a critical bug in ExAllocatePoolWithQuota spotted by msvc. Because of the current POOL_TAGGING mess in wdm.h, ExAllocatePoolWithQuotaTag is defined to ExAllocatePoolWithQuota, so when ExAllocatePoolWithQuota called the with-tag version, it ended up calling _itself_. Fix this by undefining the broken macro.

svn path=/trunk/; revision=42215
This commit is contained in:
Stefan Ginsberg 2009-07-25 16:53:25 +00:00
parent 0f8b51f5ac
commit 64f43cb6a5

View file

@ -164,6 +164,7 @@ ExAllocatePoolWithTag (POOL_TYPE PoolType, ULONG NumberOfBytes, ULONG Tag)
* @implemented * @implemented
*/ */
#undef ExAllocatePoolWithQuota #undef ExAllocatePoolWithQuota
#undef ExAllocatePoolWithQuotaTag
PVOID NTAPI PVOID NTAPI
ExAllocatePoolWithQuota (POOL_TYPE PoolType, ULONG NumberOfBytes) ExAllocatePoolWithQuota (POOL_TYPE PoolType, ULONG NumberOfBytes)
{ {
@ -201,7 +202,6 @@ ExAllocatePoolWithTagPriority(
/* /*
* @implemented * @implemented
*/ */
#undef ExAllocatePoolWithQuotaTag
PVOID PVOID
NTAPI NTAPI
ExAllocatePoolWithQuotaTag (IN POOL_TYPE PoolType, ExAllocatePoolWithQuotaTag (IN POOL_TYPE PoolType,