From 7d13898fbb2e2576bba82e0251cb4783a7cd77fc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andr=C3=A9=20Hentschel?= Date: Mon, 29 Aug 2011 21:11:23 +0200 Subject: [PATCH] winspool.drv/tests: Fix tracing a NULL string. --- dlls/winspool.drv/tests/info.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/dlls/winspool.drv/tests/info.c b/dlls/winspool.drv/tests/info.c index dbdedad8a4a..462f6ef5e99 100644 --- a/dlls/winspool.drv/tests/info.c +++ b/dlls/winspool.drv/tests/info.c @@ -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)"); } }