Re: (try 3)winex11.drv: Strip the _L or _R from X11DRV_GetKeyNameText when approperate
20 Jan
2012
20 Jan
'12
3:17 p.m.
Aric Stewart <aric(a)codeweavers.com> wrote:
+ char* idx = strrchr(name,'_'); + if (idx) + { + if (strcasecmp(idx,"_r")==0 || strcasecmp(idx,"_l")==0) + { + INT rc = 0; + TRACE("found scan=%04x keyc=%u keysym=%04x modified_string=%s\n", + scanCode, keyc, (int)keys, debugstr_an(name,idx-name)); + if (lpBuffer && nSize) + { + rc = MultiByteToWideChar(CP_UNIXCP, 0, name, idx-name, lpBuffer, nSize);
Using consistent spacing and avoiding not necessary casts would improve the readability a bit. -- Dmitry.
5076
Age (days ago)
5076
Last active (days ago)
0 comments
1 participants
participants (1)
-
Dmitry Timoshkov