winex11: Use debugstr_a to print strings that can be NULL.

Signed-off-by: Michael Stefaniuc <mstefani@redhat.de>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Michael Stefaniuc 2016-03-14 10:38:02 +01:00 committed by Alexandre Julliard
parent d241788d28
commit 17169816cd
1 changed files with 2 additions and 2 deletions

View File

@ -565,7 +565,7 @@ BOOL CDECL X11DRV_LoadTabletInfo(HWND hwnddefault)
WTI_CURSORS_INFO cursor; WTI_CURSORS_INFO cursor;
TRACE("Device %i: [id %d|name %s|type %s|num_classes %d|use %d]\n", TRACE("Device %i: [id %d|name %s|type %s|num_classes %d|use %d]\n",
loop, (int) devices[loop].id, devices[loop].name, device_type ? device_type : "", loop, (int) devices[loop].id, devices[loop].name, debugstr_a(device_type),
devices[loop].num_classes, devices[loop].use ); devices[loop].num_classes, devices[loop].use );
switch (devices[loop].use) switch (devices[loop].use)
@ -620,7 +620,7 @@ BOOL CDECL X11DRV_LoadTabletInfo(HWND hwnddefault)
if (! is_tablet_cursor(target->name, device_type)) if (! is_tablet_cursor(target->name, device_type))
{ {
WARN("Skipping device %d [name %s|type %s]; not apparently a tablet cursor type device. If this is wrong, please report it to wine-devel@winehq.org\n", WARN("Skipping device %d [name %s|type %s]; not apparently a tablet cursor type device. If this is wrong, please report it to wine-devel@winehq.org\n",
loop, devices[loop].name, device_type ? device_type : ""); loop, devices[loop].name, debugstr_a(device_type));
break; break;
} }