winspool.drv/tests: Fix tracing a NULL string.

This commit is contained in:
André Hentschel 2011-08-29 21:11:23 +02:00 committed by Alexandre Julliard
parent 3ddda7b66b
commit 7d13898fbb
1 changed files with 3 additions and 3 deletions

View File

@ -147,7 +147,7 @@ static void find_default_printer(VOID)
needed = sizeof(buffer);
res = pGetDefaultPrinterA(buffer, &needed);
if(res) default_printer = buffer;
trace("default_printer: '%s'\n", default_printer);
trace("default_printer: '%s'\n", default_printer ? default_printer : "(null)");
}
if (default_printer == NULL)
{
@ -170,7 +170,7 @@ static void find_default_printer(VOID)
}
RegCloseKey(hwindows);
}
trace("default_printer: '%s'\n", default_printer);
trace("default_printer: '%s'\n", default_printer ? default_printer : "(null)");
}
if (default_printer == NULL)
{
@ -184,7 +184,7 @@ static void find_default_printer(VOID)
default_printer = buffer;
}
}
trace("default_printer: '%s'\n", default_printer);
trace("default_printer: '%s'\n", default_printer ? default_printer : "(null)");
}
}