Commit a9bb2a55 authored by Huw D M Davies's avatar Huw D M Davies Committed by Alexandre Julliard

Make the return buffer larger (for example EuroSign in uft8 is 3+1

bytes long).
parent efe81255
...@@ -1757,7 +1757,7 @@ INT X11DRV_ToUnicode(UINT virtKey, UINT scanCode, LPBYTE lpKeyState, ...@@ -1757,7 +1757,7 @@ INT X11DRV_ToUnicode(UINT virtKey, UINT scanCode, LPBYTE lpKeyState,
KeySym keysym; KeySym keysym;
INT ret; INT ret;
int keyc; int keyc;
char lpChar[2]; char lpChar[10];
HWND focus; HWND focus;
XIC xic; XIC xic;
...@@ -1834,9 +1834,9 @@ INT X11DRV_ToUnicode(UINT virtKey, UINT scanCode, LPBYTE lpKeyState, ...@@ -1834,9 +1834,9 @@ INT X11DRV_ToUnicode(UINT virtKey, UINT scanCode, LPBYTE lpKeyState,
else TRACE("Found keycode %d (0x%2X)\n",e.keycode,e.keycode); else TRACE("Found keycode %d (0x%2X)\n",e.keycode,e.keycode);
if (xic) if (xic)
ret = XmbLookupString(xic, &e, lpChar, 2, &keysym, NULL); ret = XmbLookupString(xic, &e, lpChar, sizeof(lpChar), &keysym, NULL);
else else
ret = XLookupString(&e, lpChar, 2, &keysym, NULL); ret = XLookupString(&e, lpChar, sizeof(lpChar), &keysym, NULL);
wine_tsx11_unlock(); wine_tsx11_unlock();
if (ret == 0) if (ret == 0)
......
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