winex11: Return correct length for GetKeyNameText.
This commit is contained in:
parent
7a344c14af
commit
99069ab61f
|
@ -2352,7 +2352,7 @@ INT CDECL X11DRV_GetKeyNameText(LONG lParam, LPWSTR lpBuffer, INT nSize)
|
|||
{
|
||||
MultiByteToWideChar(CP_UNIXCP, 0, name, -1, lpBuffer, nSize);
|
||||
lpBuffer[nSize - 1] = 0;
|
||||
return 1;
|
||||
return nSize;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue