Author: fireball
Date: Fri Jan 9 02:54:03 2009
New Revision: 38661
URL:
http://svn.reactos.org/svn/reactos?rev=38661&view=rev
Log:
- Fix inversed failure logic in MmAllocatePagesForMdl.
See issue #4009 for more details.
Modified:
trunk/reactos/ntoskrnl/mm/mdlsup.c
Modified: trunk/reactos/ntoskrnl/mm/mdlsup.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/ntoskrnl/mm/mdlsup.c?rev=3…
==============================================================================
--- trunk/reactos/ntoskrnl/mm/mdlsup.c [iso-8859-1] (original)
+++ trunk/reactos/ntoskrnl/mm/mdlsup.c [iso-8859-1] Fri Jan 9 02:54:03 2009
@@ -599,7 +599,7 @@
}
/* If nothing was allocated, fail */
- if (NumberOfPagesAllocated)
+ if (NumberOfPagesWanted)
{
/* Free our MDL */
ExFreePool(Mdl);