Skip to content
Snippets Groups Projects
Commit 20ac2072 authored by Guy Albertelli's avatar Guy Albertelli Committed by Alexandre Julliard
Browse files

Correct logic in GetKeyNameText.

parent ee7ac068
No related branches found
No related tags found
No related merge requests found
......@@ -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)
{
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment