Author: sir_richard
Date: Sun Jun 6 15:42:19 2010
New Revision: 47620
URL:
http://svn.reactos.org/svn/reactos?rev=47620&view=rev
Log:
[NTOS]: Fix a loop off-by-one when saving the page table index in contigious memory
allocation PFNs. Spotted by Stefan100.
Modified:
trunk/reactos/ntoskrnl/mm/ARM3/contmem.c
Modified: trunk/reactos/ntoskrnl/mm/ARM3/contmem.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/ntoskrnl/mm/ARM3/contmem.c…
==============================================================================
--- trunk/reactos/ntoskrnl/mm/ARM3/contmem.c [iso-8859-1] (original)
+++ trunk/reactos/ntoskrnl/mm/ARM3/contmem.c [iso-8859-1] Sun Jun 6 15:42:19 2010
@@ -352,8 +352,8 @@
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 */