winex11: Fix printing NULL strings.

oldstable
Francois Gouget 2011-09-19 23:28:30 +02:00 committed by Alexandre Julliard
parent 843e97eb1f
commit 076f678446
1 changed files with 1 additions and 1 deletions

View File

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