Emulates ins/outs correctly for DOS programs.

This commit is contained in:
Ove Kaaven 1999-01-03 12:25:41 +00:00 committed by Alexandre Julliard
parent 0562539d18
commit 5b729dd6a4
1 changed files with 2 additions and 2 deletions

View File

@ -516,14 +516,14 @@ BOOL32 INSTR_EmulateInstruction( SIGCONTEXT *context )
void *data;
if (outp)
{
data = MAKE_PTR(seg,
data = MK_PTR(context, seg,
long_addr ? ESI_sig(context) : SI_sig(context));
if (long_addr) ESI_sig(context) += step;
else SI_sig(context) += step;
}
else
{
data = MAKE_PTR(seg,
data = MK_PTR(context, seg,
long_addr ? EDI_sig(context) : DI_sig(context));
if (long_addr) EDI_sig(context) += step;
else DI_sig(context) += step;