From 99069ab61f6b2f2a0b1745f73f80503d0631e3f2 Mon Sep 17 00:00:00 2001 From: Austin English Date: Mon, 8 Jun 2009 11:52:48 -0500 Subject: [PATCH] winex11: Return correct length for GetKeyNameText. --- dlls/winex11.drv/keyboard.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dlls/winex11.drv/keyboard.c b/dlls/winex11.drv/keyboard.c index 05b3b53a3ba..8a6dd3756f6 100644 --- a/dlls/winex11.drv/keyboard.c +++ b/dlls/winex11.drv/keyboard.c @@ -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; } }