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:
Francois Gouget 2019-09-30 01:39:57 +02:00 committed by Alexandre Julliard
parent 5d95fe767b
commit 71ad4add73
1 changed files with 1 additions and 1 deletions

View File

@ -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()))