- Fix inversed failure logic in MmAllocatePagesForMdl.

See issue #4009 for more details.

svn path=/trunk/; revision=38661
This commit is contained in:
Aleksey Bragin 2009-01-09 08:54:03 +00:00
parent fd83003c9d
commit d7523459e7

View file

@ -599,7 +599,7 @@ MmAllocatePagesForMdl(IN PHYSICAL_ADDRESS LowAddress,
}
/* If nothing was allocated, fail */
if (NumberOfPagesAllocated)
if (NumberOfPagesWanted)
{
/* Free our MDL */
ExFreePool(Mdl);