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

Alexandre Julliard julliard at wine.codeweavers.com
Tue Jan 16 05:22:22 CST 2007


Module: wine
Branch: master
Commit: 85cd0a1f7afca99f90a62ce5fc2cad710829967b
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=85cd0a1f7afca99f90a62ce5fc2cad710829967b

Author: Detlef Riekenberg <wine.dev at web.de>
Date:   Mon Jan 15 05:38:47 2007 +0100

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

---

 dlls/winspool.drv/tests/info.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/dlls/winspool.drv/tests/info.c b/dlls/winspool.drv/tests/info.c
index d1c3282..888a7d6 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 */




More information about the wine-cvs mailing list