Author: aandrejevic Date: Tue Nov 26 18:11:53 2013 New Revision: 61106
URL: http://svn.reactos.org/svn/reactos?rev=61106&view=rev Log: [FAST486] Fix the order of operations.
Modified: branches/ntvdm/lib/fast486/common.inl
Modified: branches/ntvdm/lib/fast486/common.inl URL: http://svn.reactos.org/svn/reactos/branches/ntvdm/lib/fast486/common.inl?rev... ============================================================================== --- branches/ntvdm/lib/fast486/common.inl [iso-8859-1] (original) +++ branches/ntvdm/lib/fast486/common.inl [iso-8859-1] Tue Nov 26 18:11:53 2013 @@ -159,7 +159,7 @@ if (Page == PAGE_ALIGN(LinearAddress + Size - 1)) { /* Copy only a part of the page */ - PageLength = PAGE_OFFSET(LinearAddress + Size) - PageOffset; + PageLength = PAGE_OFFSET(LinearAddress) + Size - PageOffset; }
/* Read the memory */ @@ -224,7 +224,7 @@ if (Page == PAGE_ALIGN(LinearAddress + Size - 1)) { /* Copy only a part of the page */ - PageLength = PAGE_OFFSET(LinearAddress + Size) - PageOffset; + PageLength = PAGE_OFFSET(LinearAddress) + Size - PageOffset; }
/* Write the memory */