[FAST486]
authorAleksandar Andrejevic <aandrejevic@reactos.org>
Tue, 26 Nov 2013 17:56:18 +0000 (17:56 +0000)
committerAleksandar Andrejevic <aandrejevic@reactos.org>
Tue, 26 Nov 2013 17:56:18 +0000 (17:56 +0000)
Complete the previous commit with a fix for Fast486WriteLinearMemory too.

svn path=/branches/ntvdm/; revision=61105

lib/fast486/common.inl

index 6fb0398..895487c 100644 (file)
@@ -224,7 +224,7 @@ Fast486WriteLinearMemory(PFAST486_STATE State,
             if (Page == PAGE_ALIGN(LinearAddress + Size - 1))
             {
                 /* Copy only a part of the page */
-                PageLength = PAGE_OFFSET(LinearAddress + Size);
+                PageLength = PAGE_OFFSET(LinearAddress + Size) - PageOffset;
             }
 
             /* Write the memory */