Author: aandrejevic
Date: Tue Nov 26 17:55:07 2013
New Revision: 61104
URL:
http://svn.reactos.org/svn/reactos?rev=61104&view=rev
Log:
[FAST486]
Handle the case when the last page is also the first page in Fast486ReadLinearMemory (
when paging is enabled).
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?re…
==============================================================================
--- branches/ntvdm/lib/fast486/common.inl [iso-8859-1] (original)
+++ branches/ntvdm/lib/fast486/common.inl [iso-8859-1] Tue Nov 26 17:55:07 2013
@@ -159,7 +159,7 @@
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;
}
/* Read the memory */