[NTOS]: In MiInitializePfnForOtherProcess, should increment the sharecount of the...
authorSir Richard <sir_richard@svn.reactos.org>
Sat, 5 Jun 2010 14:55:17 +0000 (14:55 +0000)
committerSir Richard <sir_richard@svn.reactos.org>
Sat, 5 Jun 2010 14:55:17 +0000 (14:55 +0000)
svn path=/trunk/; revision=47588

reactos/ntoskrnl/mm/ARM3/pfnlist.c

index 00afacf..bc0167e 100644 (file)
@@ -791,7 +791,7 @@ MiInitializePfnForOtherProcess(IN PFN_NUMBER PageFrameIndex,
         Pfn1->u4.PteFrame = PteFrame;
         
         /* Increase its share count so we don't get rid of it */    
         Pfn1->u4.PteFrame = PteFrame;
         
         /* Increase its share count so we don't get rid of it */    
-        Pfn1 = MiGetPfnEntry(PageFrameIndex);
+        Pfn1 = MiGetPfnEntry(PteFrame);
         Pfn1->u2.ShareCount++;
     }
 }
         Pfn1->u2.ShareCount++;
     }
 }