mirror of
https://github.com/reactos/reactos.git
synced 2025-02-24 09:25:10 +00:00
[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:
parent
ebd10beb1f
commit
08b2876a25
1 changed files with 2 additions and 2 deletions
|
@ -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 */
|
||||
|
|
Loading…
Reference in a new issue