winex11.drv: return correct length for GetKeyNameText

Austin English austinenglish at gmail.com
Mon Jun 8 11:52:48 CDT 2009


See bug 16195.

-- 
-Austin
-------------- next part --------------
diff --git a/dlls/winex11.drv/keyboard.c b/dlls/winex11.drv/keyboard.c
index 80f8445..3b95b21 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;
       }
   }
 


More information about the wine-patches mailing list