Commit 71ad4add authored by Francois Gouget's avatar Francois Gouget Committed by Alexandre Julliard

winspool.drv/tests: Avoid an unneeded strlen() call.

parent 5d95fe76
......@@ -1456,7 +1456,7 @@ static void test_GetDefaultPrinter(void)
SetLastError(ERROR_SUCCESS);
retval = pGetDefaultPrinterA(buffer, &exact);
if (!retval || !exact || !strlen(buffer) ||
if (!retval || !exact || !*buffer ||
(ERROR_SUCCESS != GetLastError())) {
if ((ERROR_FILE_NOT_FOUND == GetLastError()) ||
(ERROR_INVALID_NAME == GetLastError()))
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment