[NTOS]: Fix "fail". Dedicated to Timo.
authorSir Richard <sir_richard@svn.reactos.org>
Thu, 22 Jul 2010 05:22:26 +0000 (05:22 +0000)
committerSir Richard <sir_richard@svn.reactos.org>
Thu, 22 Jul 2010 05:22:26 +0000 (05:22 +0000)
svn path=/trunk/; revision=48180

reactos/ntoskrnl/mm/ARM3/sysldr.c

index d8f7157..7706a9f 100644 (file)
@@ -2211,7 +2211,7 @@ MiWriteProtectSystemImage(IN PVOID ImageBase)
     }
     
     /* Finally, handle the last section */
     }
     
     /* Finally, handle the last section */
-    CurrentPte = MiPteToAddress(CurrentAddress);
+    CurrentPte = MiAddressToPte(CurrentAddress);
     if ((StartPte < LastPte) && (CurrentPte >= StartPte))
     {
         /* Handle overlap */
     if ((StartPte < LastPte) && (CurrentPte >= StartPte))
     {
         /* Handle overlap */