Correct logic in GetKeyNameText.

This commit is contained in:
Guy Albertelli 1999-05-02 09:11:33 +00:00 committed by Alexandre Julliard
parent ee7ac068dd
commit 20ac20724d
1 changed files with 2 additions and 2 deletions

View File

@ -1038,8 +1038,8 @@ INT16 X11DRV_KEYBOARD_GetKeyNameText(LONG lParam, LPSTR lpBuffer, INT16 nSize)
TRACE(keyboard, "scan 0x%04x, vkey 0x%04x, ANSI 0x%04x\n",
scanCode, vkey, ansi);
if ((vkey >= 0x30) && (vkey <= 0x39) &&
(vkey >= 0x41) && (vkey <= 0x5a)) /* Windows VK_* are ANSI codes */
if ( ((vkey >= 0x30) && (vkey <= 0x39)) ||
( (vkey >= 0x41) && (vkey <= 0x5a)) ) /* Windows VK_* are ANSI codes */
{
if ((nSize >= 2) && lpBuffer)
{