winex11.drv: Detect an XLookupString that returns Latin-1 and avoid codepage mapping in that case.

This commit is contained in:
Alexandre Julliard 2006-11-07 17:28:02 +01:00
parent 187d52bc2d
commit ac227461ac
1 changed files with 7 additions and 0 deletions

View File

@ -2512,6 +2512,13 @@ INT X11DRV_ToUnicodeEx(UINT virtKey, UINT scanCode, LPBYTE lpKeyState,
ret = 0;
}
/* Hack to detect an XLookupString hard-coded to Latin1 */
if (ret == 1 && keysym >= 0x00a0 && keysym <= 0x00ff && (BYTE)lpChar[0] == keysym)
{
bufW[0] = (BYTE)lpChar[0];
goto found;
}
/* perform translation to unicode */
if(ret)
{