[NTOS]: Fix a loop off-by-one when saving the page table index in contigious memory allocation PFNs. Spotted by Stefan100.

svn path=/trunk/; revision=47620
This commit is contained in:
Sir Richard 2010-06-06 13:42:19 +00:00
parent ebd10beb1f
commit 08b2876a25

View file

@ -352,8 +352,8 @@ MiFindContiguousMemory(IN PFN_NUMBER LowestPfn,
do
{
/* Write the PTE address */
Pfn1->PteAddress = PointerPte++;
Pfn1->u4.PteFrame = PFN_FROM_PTE(MiAddressToPte(PointerPte));
Pfn1->PteAddress = PointerPte;
Pfn1->u4.PteFrame = PFN_FROM_PTE(MiAddressToPte(PointerPte++));
} while (Pfn1++ < EndPfn);
/* Return the address */