Mike McCormack : user32: ToUnicodeEx should return 0 for an unknown
key.
Alexandre Julliard
julliard at wine.codeweavers.com
Mon Nov 6 08:49:05 CST 2006
Module: wine
Branch: master
Commit: 671e9c065819c7d14770d7a7d934a31cfa0331de
URL: http://source.winehq.org/git/wine.git/?a=commit;h=671e9c065819c7d14770d7a7d934a31cfa0331de
Author: Mike McCormack <mike at codeweavers.com>
Date: Mon Nov 6 20:11:24 2006 +0900
user32: ToUnicodeEx should return 0 for an unknown key.
---
dlls/winex11.drv/keyboard.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/dlls/winex11.drv/keyboard.c b/dlls/winex11.drv/keyboard.c
index 7768151..9b3bdeb 100644
--- a/dlls/winex11.drv/keyboard.c
+++ b/dlls/winex11.drv/keyboard.c
@@ -2401,7 +2401,7 @@ INT X11DRV_ToUnicodeEx(UINT virtKey, UIN
{
WARN("Unknown virtual key %X !!!\n", virtKey);
wine_tsx11_unlock();
- return virtKey; /* whatever */
+ return 0;
}
else TRACE("Found keycode %d (0x%2X)\n",e.keycode,e.keycode);
More information about the wine-cvs
mailing list