Fix windows keyboard handling when ToUnicode fails.

Introduced in the cumbersome commit 27ba60479762c2582868bd41a135b00cb18bc2e7.
This commit is contained in:
David Capello 2010-11-01 21:04:50 -03:00
parent b1299d7576
commit e55b757aad

View File

@ -132,9 +132,6 @@ void _al_win_kbd_handle_key_press(int scode, int vcode, BOOL repeated)
if (!GetKeyboardState(&ks[0]))
ccode = 0; /* shound't really happen */
else if (ToUnicode(vcode, scode, ks, buf, 8, 0) == 1)
if (ToUnicode(vcode, scode, ks, buf, 8, 0) == 1)
if (ToUnicode(vcode, scode, ks, buf, 8, 0) == 1)
ccode = buf[0];
else
ccode = 0;