winspool/tests: Fix tests for EnumPrinters when the spooler is off.
This commit is contained in:
parent
b86a7644d9
commit
85cd0a1f7a
|
@ -1654,6 +1654,7 @@ static void test_EnumPrinters(void)
|
||||||
SetLastError(0xdeadbeef);
|
SetLastError(0xdeadbeef);
|
||||||
neededA = -1;
|
neededA = -1;
|
||||||
ret = EnumPrintersA(PRINTER_ENUM_LOCAL, NULL, 2, NULL, 0, &neededA, &num);
|
ret = EnumPrintersA(PRINTER_ENUM_LOCAL, NULL, 2, NULL, 0, &neededA, &num);
|
||||||
|
RETURN_ON_DEACTIVATED_SPOOLER(ret)
|
||||||
if (!ret)
|
if (!ret)
|
||||||
{
|
{
|
||||||
/* We have 1 or more printers */
|
/* We have 1 or more printers */
|
||||||
|
|
Loading…
Reference in New Issue