mirror of
https://github.com/reactos/reactos.git
synced 2025-04-21 04:37:15 +00:00
[FAST486]
Fix the order of operations. svn path=/branches/ntvdm/; revision=61106
This commit is contained in:
parent
556bace69f
commit
d358641f7c
1 changed files with 2 additions and 2 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) - PageOffset;
|
PageLength = PAGE_OFFSET(LinearAddress) + Size - PageOffset;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Read the memory */
|
/* Read the memory */
|
||||||
|
@ -224,7 +224,7 @@ Fast486WriteLinearMemory(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) - PageOffset;
|
PageLength = PAGE_OFFSET(LinearAddress) + Size - PageOffset;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Write the memory */
|
/* Write the memory */
|
||||||
|
|
Loading…
Reference in a new issue