winspool.drv: Skip tests when no printer is installed.

This commit is contained in:
Austin English 2010-11-10 23:47:07 -08:00 committed by Alexandre Julliard
parent 574a21cc14
commit d2ee7aa790
1 changed files with 5 additions and 0 deletions

View File

@ -1924,6 +1924,11 @@ static void test_SetDefaultPrinter(void)
CHAR buffer[DEFAULT_PRINTER_SIZE];
CHAR org_value[DEFAULT_PRINTER_SIZE];
if (!default_printer)
{
skip("There is no default printer installed\n");
return;
}
if (!pSetDefaultPrinterA) return;
/* only supported on win2k and above */