winex11: Return correct length for GetKeyNameText.

This commit is contained in:
Austin English 2009-06-08 11:52:48 -05:00 committed by Alexandre Julliard
parent 7a344c14af
commit 99069ab61f
1 changed files with 1 additions and 1 deletions

View File

@ -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;
}
}