Francois Gouget : winex11: Fix printing NULL strings.

Alexandre Julliard julliard at winehq.org
Tue Sep 20 13:08:34 CDT 2011


Module: wine
Branch: master
Commit: 076f67844624fdde6c27616808ba8b275b30649c
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=076f67844624fdde6c27616808ba8b275b30649c

Author: Francois Gouget <fgouget at free.fr>
Date:   Mon Sep 19 23:28:30 2011 +0200

winex11: Fix printing NULL strings.

---

 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 423921a..47317e6 100644
--- a/dlls/winex11.drv/keyboard.c
+++ b/dlls/winex11.drv/keyboard.c
@@ -2301,7 +2301,7 @@ INT CDECL X11DRV_GetKeyNameText(LONG lParam, LPWSTR lpBuffer, INT nSize)
       name = XKeysymToString(keys);
       wine_tsx11_unlock();
       TRACE("found scan=%04x keyc=%u keysym=%04x string=%s\n",
-            scanCode, keyc, (int)keys, name);
+            scanCode, keyc, (int)keys, debugstr_a(name));
       if (lpBuffer && nSize && name)
           return MultiByteToWideChar(CP_UNIXCP, 0, name, -1, lpBuffer, nSize);
   }




More information about the wine-cvs mailing list