Make ioport instruction emulation call winedos handlers.

This commit is contained in:
Jukka Heinonen 2003-05-11 03:30:02 +00:00 committed by Alexandre Julliard
parent 692c821609
commit 47592a4e76
1 changed files with 6 additions and 2 deletions

View File

@ -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)
{