Author: ros-arm-bringup
Date: Mon Jul 27 02:09:09 2009
New Revision: 42246
URL:
http://svn.reactos.org/svn/reactos?rev=42246&view=rev
Log:
- DebugPool implementation is not compatible with newer nonpaged pool algorithms, so
remove support for nonpaged pool debugging.
- Special pool implementation will restore this functionality.
Modified:
trunk/reactos/ntoskrnl/mm/dbgpool.c
Modified: trunk/reactos/ntoskrnl/mm/dbgpool.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/ntoskrnl/mm/dbgpool.c?rev=…
==============================================================================
--- trunk/reactos/ntoskrnl/mm/dbgpool.c [iso-8859-1] (original)
+++ trunk/reactos/ntoskrnl/mm/dbgpool.c [iso-8859-1] Mon Jul 27 02:09:09 2009
@@ -69,9 +69,10 @@
}
else
{
- Buffer = (ULONG_PTR)
- ExAllocateNonPagedPoolWithTag(Type, TotalSize, Tag, Caller);
+ ASSERT(FALSE);
+ return NULL;
}
+
/* If allocation failed - fail too */
if (!Buffer)
@@ -126,10 +127,8 @@
MmSetPageProtect(NULL, ProtectedPage, PAGE_READWRITE);
/* Free storage */
- if (PagedPool)
- ExFreePagedPool(Header->ActualAddress);
- else
- ExFreeNonPagedPool(Header->ActualAddress);
+ ASSERT(PagedPool);
+ ExFreePagedPool(Header->ActualAddress);
}
/* EOF */