Fix a bug in MiAllocatePagesForMdl that made it loop forever on the 1st page.
authorTimo Kreuzer <timo.kreuzer@reactos.org>
Thu, 3 Dec 2009 17:02:34 +0000 (17:02 +0000)
committerTimo Kreuzer <timo.kreuzer@reactos.org>
Thu, 3 Dec 2009 17:02:34 +0000 (17:02 +0000)
svn path=/trunk/; revision=44378

reactos/ntoskrnl/mm/freelist.c

index 7d7293f..5e31a4c 100644 (file)
@@ -594,7 +594,7 @@ MiAllocatePagesForMdl(IN PHYSICAL_ADDRESS LowAddress,
         //
         // Check if we've reached the end
         //
-        Page = *MdlPage;
+        Page = *MdlPage++;
         if (Page == (PFN_NUMBER)-1) break;
         
         //