From 671e9c065819c7d14770d7a7d934a31cfa0331de Mon Sep 17 00:00:00 2001 From: Mike McCormack Date: Mon, 6 Nov 2006 20:11:24 +0900 Subject: [PATCH] user32: ToUnicodeEx should return 0 for an unknown key. --- dlls/winex11.drv/keyboard.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dlls/winex11.drv/keyboard.c b/dlls/winex11.drv/keyboard.c index 77681511ee1..9b3bdebc950 100644 --- a/dlls/winex11.drv/keyboard.c +++ b/dlls/winex11.drv/keyboard.c @@ -2401,7 +2401,7 @@ INT X11DRV_ToUnicodeEx(UINT virtKey, UINT scanCode, LPBYTE lpKeyState, { 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);