mirror of
https://github.com/reactos/reactos.git
synced 2024-08-21 02:43:48 +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
|
@ -352,8 +352,8 @@ MiFindContiguousMemory(IN PFN_NUMBER LowestPfn,
|
||||||
do
|
do
|
||||||
{
|
{
|
||||||
/* Write the PTE address */
|
/* Write the PTE address */
|
||||||
Pfn1->PteAddress = PointerPte++;
|
Pfn1->PteAddress = PointerPte;
|
||||||
Pfn1->u4.PteFrame = PFN_FROM_PTE(MiAddressToPte(PointerPte));
|
Pfn1->u4.PteFrame = PFN_FROM_PTE(MiAddressToPte(PointerPte++));
|
||||||
} while (Pfn1++ < EndPfn);
|
} while (Pfn1++ < EndPfn);
|
||||||
|
|
||||||
/* Return the address */
|
/* Return the address */
|
||||||
|
|
Loading…
Reference in a new issue