mirror of
https://github.com/reactos/reactos.git
synced 2025-08-06 05:53:05 +00:00
[SOFT386]
Fix previous fix. svn path=/branches/ntvdm/; revision=60468
This commit is contained in:
parent
d4d6e6eca9
commit
1294b156ea
1 changed files with 2 additions and 2 deletions
|
@ -50,7 +50,7 @@ Soft386ReadMemory(PSOFT386_STATE State,
|
||||||
/* Get the cached descriptor */
|
/* Get the cached descriptor */
|
||||||
CachedDescriptor = &State->SegmentRegs[SegmentReg];
|
CachedDescriptor = &State->SegmentRegs[SegmentReg];
|
||||||
|
|
||||||
if ((Offset + Size) > CachedDescriptor->Limit)
|
if ((Offset + Size - 1) > CachedDescriptor->Limit)
|
||||||
{
|
{
|
||||||
/* Read beyond limit */
|
/* Read beyond limit */
|
||||||
Soft386Exception(State, SOFT386_EXCEPTION_GP);
|
Soft386Exception(State, SOFT386_EXCEPTION_GP);
|
||||||
|
@ -190,7 +190,7 @@ Soft386WriteMemory(PSOFT386_STATE State,
|
||||||
/* Get the cached descriptor */
|
/* Get the cached descriptor */
|
||||||
CachedDescriptor = &State->SegmentRegs[SegmentReg];
|
CachedDescriptor = &State->SegmentRegs[SegmentReg];
|
||||||
|
|
||||||
if ((Offset + Size) >= CachedDescriptor->Limit)
|
if ((Offset + Size - 1) > CachedDescriptor->Limit)
|
||||||
{
|
{
|
||||||
/* Write beyond limit */
|
/* Write beyond limit */
|
||||||
Soft386Exception(State, SOFT386_EXCEPTION_GP);
|
Soft386Exception(State, SOFT386_EXCEPTION_GP);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue