From 47592a4e762f0089a1217612567fa6fd2fa2a536 Mon Sep 17 00:00:00 2001 From: Jukka Heinonen Date: Sun, 11 May 2003 03:30:02 +0000 Subject: [PATCH] Make ioport instruction emulation call winedos handlers. --- msdos/ioports.c | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/msdos/ioports.c b/msdos/ioports.c index f0e237ba35e..f02e6aae7cb 100644 --- a/msdos/ioports.c +++ b/msdos/ioports.c @@ -314,7 +314,9 @@ DWORD IO_inport( int port, int size ) #endif /* first give the DOS VM a chance to handle it */ - if (Dosvm.inport && Dosvm.inport( port, size, &res )) return res; + if (Dosvm.inport || DPMI_LoadDosSystem()) + if (Dosvm.inport( port, size, &res )) + return res; switch (port) { @@ -436,7 +438,9 @@ void IO_outport( int port, int size, DWORD value ) #endif /* first give the DOS VM a chance to handle it */ - if (Dosvm.outport && Dosvm.outport( port, size, value )) return; + if (Dosvm.outport || DPMI_LoadDosSystem()) + if (Dosvm.outport( port, size, value )) + return; switch (port) {