mirror of
https://github.com/reactos/reactos.git
synced 2025-04-20 12:29:56 +00:00
[FAST486]
Handle the case when the last page is also the first page in Fast486ReadLinearMemory ( when paging is enabled). svn path=/branches/ntvdm/; revision=61104
This commit is contained in:
parent
8e356f7a95
commit
f45361126f
1 changed files with 1 additions and 1 deletions
|
@ -159,7 +159,7 @@ Fast486ReadLinearMemory(PFAST486_STATE State,
|
||||||
if (Page == PAGE_ALIGN(LinearAddress + Size - 1))
|
if (Page == PAGE_ALIGN(LinearAddress + Size - 1))
|
||||||
{
|
{
|
||||||
/* Copy only a part of the page */
|
/* Copy only a part of the page */
|
||||||
PageLength = PAGE_OFFSET(LinearAddress + Size);
|
PageLength = PAGE_OFFSET(LinearAddress + Size) - PageOffset;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Read the memory */
|
/* Read the memory */
|
||||||
|
|
Loading…
Reference in a new issue