Austin English : winex11: Return correct length for GetKeyNameText.
Alexandre Julliard
julliard at winehq.org
Tue Jun 9 10:45:26 CDT 2009
Module: wine
Branch: master
Commit: 99069ab61f6b2f2a0b1745f73f80503d0631e3f2
URL: http://source.winehq.org/git/wine.git/?a=commit;h=99069ab61f6b2f2a0b1745f73f80503d0631e3f2
Author: Austin English <austinenglish at gmail.com>
Date: Mon Jun 8 11:52:48 2009 -0500
winex11: Return correct length for GetKeyNameText.
---
dlls/winex11.drv/keyboard.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/dlls/winex11.drv/keyboard.c b/dlls/winex11.drv/keyboard.c
index 05b3b53..8a6dd37 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-cvs
mailing list