From 85cd0a1f7afca99f90a62ce5fc2cad710829967b Mon Sep 17 00:00:00 2001 From: Detlef Riekenberg Date: Mon, 15 Jan 2007 05:38:47 +0100 Subject: [PATCH] winspool/tests: Fix tests for EnumPrinters when the spooler is off. --- dlls/winspool.drv/tests/info.c | 1 + 1 file changed, 1 insertion(+) diff --git a/dlls/winspool.drv/tests/info.c b/dlls/winspool.drv/tests/info.c index d1c3282dc02..888a7d6a46d 100644 --- a/dlls/winspool.drv/tests/info.c +++ b/dlls/winspool.drv/tests/info.c @@ -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 */