Commit 20ac2072 authored by Guy Albertelli's avatar Guy Albertelli Committed by Alexandre Julliard

Correct logic in GetKeyNameText.

parent ee7ac068
......@@ -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)
{
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment