Small cleanup in DOS console input

Jukka Heinonen jhei at iki.fi
Sat Apr 6 16:15:03 CST 2002


Cleaned up DOSVM a bit by replacing one CONSOLE_ call
with DOSVM_Int16ReadChar, which should work better, anyway.
Now only file "int10.c" has CONSOLE_ calls.

Changelog:
  Converted "read standard input with echo" interrupt service
  to use common DOSVM console input routine and made the service really echo.

Index: int21.c
===================================================================
RCS file: /home/wine/wine/dlls/winedos/int21.c,v
retrieving revision 1.5
diff -u -r1.5 int21.c
--- int21.c     3 Apr 2002 02:34:45 -0000       1.5
+++ int21.c     6 Apr 2002 22:07:45 -0000
@@ -86,8 +86,8 @@
 
     case 0x01: /* READ CHARACTER FROM STANDARD INPUT, WITH ECHO */
         TRACE("DIRECT CHARACTER INPUT WITH ECHO\n");
-       AL_reg(context) = CONSOLE_GetCharacter();
-       /* FIXME: no echo */
+       DOSVM_Int16ReadChar(&AL_reg(context), NULL, FALSE);
+       DOSVM_PutChar(AL_reg(context));
        break;
 
     case 0x02: /* WRITE CHARACTER TO STANDARD OUTPUT */



-- 
Jukka Heinonen <http://www.iki.fi/jhei/>



More information about the wine-patches mailing list