- DebugPool implementation is not compatible with newer nonpaged pool algorithms, so remove support for nonpaged pool debugging.

- Special pool implementation will restore this functionality.

svn path=/trunk/; revision=42246
This commit is contained in:
ReactOS Portable Systems Group 2009-07-27 00:09:09 +00:00
parent a6757c9637
commit 8257a252cb

View file

@ -69,10 +69,11 @@ ExpAllocateDebugPool(POOL_TYPE Type, ULONG Size, ULONG Tag, PVOID Caller, BOOLEA
}
else
{
Buffer = (ULONG_PTR)
ExAllocateNonPagedPoolWithTag(Type, TotalSize, Tag, Caller);
ASSERT(FALSE);
return NULL;
}
/* If allocation failed - fail too */
if (!Buffer)
{
@ -126,10 +127,8 @@ ExpFreeDebugPool(PVOID Block, BOOLEAN PagedPool)
MmSetPageProtect(NULL, ProtectedPage, PAGE_READWRITE);
/* Free storage */
if (PagedPool)
ExFreePagedPool(Header->ActualAddress);
else
ExFreeNonPagedPool(Header->ActualAddress);
ASSERT(PagedPool);
ExFreePagedPool(Header->ActualAddress);
}
/* EOF */