Emulating STI instruction now raises an exception if there are pending

events.
This commit is contained in:
Jukka Heinonen 2004-03-15 20:09:41 +00:00 committed by Alexandre Julliard
parent 70835ebf02
commit 37213d2ba1
1 changed files with 5 additions and 0 deletions

View File

@ -822,6 +822,11 @@ DWORD INSTR_EmulateInstruction( EXCEPTION_RECORD *rec, CONTEXT86 *context )
case 0xfb: /* sti */
NtCurrentTeb()->dpmi_vif = 1;
context->Eip += prefixlen + 1;
if (NtCurrentTeb()->vm86_pending)
{
rec->ExceptionCode = EXCEPTION_VM86_STI;
break; /* Handle the pending event. */
}
return ExceptionContinueExecution;
}
return ExceptionContinueSearch; /* Unable to emulate it */