mirror of
https://github.com/reactos/reactos.git
synced 2025-02-24 17:34:57 +00:00
- 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:
parent
a6757c9637
commit
8257a252cb
1 changed files with 5 additions and 6 deletions
|
@ -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 */
|
||||
|
|
Loading…
Reference in a new issue