winspool.drv/tests: Avoid an unneeded strlen() call.
Signed-off-by: Francois Gouget <fgouget@free.fr> Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
5d95fe767b
commit
71ad4add73
|
@ -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()))
|
||||
|
|
Loading…
Reference in New Issue