Module: wine Branch: master Commit: 2fc275f64a18973f7f969c8971d8323cec327ee5 URL: http://source.winehq.org/git/wine.git/?a=commit;h=2fc275f64a18973f7f969c8971...
Author: Eric Pouech eric.pouech@orange.fr Date: Sun Jun 1 22:04:15 2008 +0200
msvcrt: Fix for getch() and special characters.
---
dlls/msvcrt/console.c | 6 +++--- 1 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/dlls/msvcrt/console.c b/dlls/msvcrt/console.c index ab1cd94..21bcf16 100644 --- a/dlls/msvcrt/console.c +++ b/dlls/msvcrt/console.c @@ -139,11 +139,11 @@ int CDECL _getch(void) { unsigned idx;
- if (ir.Event.KeyEvent.wVirtualScanCode & (LEFT_ALT_PRESSED | RIGHT_ALT_PRESSED)) + if (ir.Event.KeyEvent.dwControlKeyState & (LEFT_ALT_PRESSED | RIGHT_ALT_PRESSED)) idx = ALT_CHAR; - else if (ir.Event.KeyEvent.wVirtualScanCode & (LEFT_CTRL_PRESSED | RIGHT_CTRL_PRESSED) ) + else if (ir.Event.KeyEvent.dwControlKeyState & (LEFT_CTRL_PRESSED | RIGHT_CTRL_PRESSED) ) idx = CTRL_CHAR; - else if (ir.Event.KeyEvent.wVirtualScanCode & SHIFT_PRESSED) + else if (ir.Event.KeyEvent.dwControlKeyState & SHIFT_PRESSED) idx = SHIFT_CHAR; else idx = NORMAL_CHAR;