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
|
else
|
||||||
{
|
{
|
||||||
Buffer = (ULONG_PTR)
|
ASSERT(FALSE);
|
||||||
ExAllocateNonPagedPoolWithTag(Type, TotalSize, Tag, Caller);
|
return NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
/* If allocation failed - fail too */
|
/* If allocation failed - fail too */
|
||||||
if (!Buffer)
|
if (!Buffer)
|
||||||
{
|
{
|
||||||
|
@ -126,10 +127,8 @@ ExpFreeDebugPool(PVOID Block, BOOLEAN PagedPool)
|
||||||
MmSetPageProtect(NULL, ProtectedPage, PAGE_READWRITE);
|
MmSetPageProtect(NULL, ProtectedPage, PAGE_READWRITE);
|
||||||
|
|
||||||
/* Free storage */
|
/* Free storage */
|
||||||
if (PagedPool)
|
ASSERT(PagedPool);
|
||||||
ExFreePagedPool(Header->ActualAddress);
|
ExFreePagedPool(Header->ActualAddress);
|
||||||
else
|
|
||||||
ExFreeNonPagedPool(Header->ActualAddress);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/* EOF */
|
/* EOF */
|
||||||
|
|
Loading…
Reference in a new issue