winspool/tests: Fix tests for EnumPrinters when the spooler is off.

This commit is contained in:
Detlef Riekenberg 2007-01-15 05:38:47 +01:00 committed by Alexandre Julliard
parent b86a7644d9
commit 85cd0a1f7a
1 changed files with 1 additions and 0 deletions

View File

@ -1654,6 +1654,7 @@ static void test_EnumPrinters(void)
SetLastError(0xdeadbeef);
neededA = -1;
ret = EnumPrintersA(PRINTER_ENUM_LOCAL, NULL, 2, NULL, 0, &neededA, &num);
RETURN_ON_DEACTIVATED_SPOOLER(ret)
if (!ret)
{
/* We have 1 or more printers */