user32: ToUnicodeEx should return 0 for an unknown key.

This commit is contained in:
Mike McCormack 2006-11-06 20:11:24 +09:00 committed by Alexandre Julliard
parent fd2d43f131
commit 671e9c0658
1 changed files with 1 additions and 1 deletions

View File

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