[NTPRINT_WINETEST]
[reactos.git] / rostests / winetests / ntprint / ntprint.c
index cf9853d..e0bc01e 100644 (file)
@@ -70,6 +70,10 @@ static void test_PSetupCreateMonitorInfo(VOID)
 
     SetLastError(0xdeadbeef);
     mi = pPSetupCreateMonitorInfo(NULL, NULL, NULL);
+    if (!mi && (GetLastError() == RPC_S_SERVER_UNAVAILABLE)) {
+        win_skip("The service 'Spooler' is required for many tests\n");
+        return;
+    }
     ok( mi != NULL, "got %p with %u (expected '!= NULL')\n", mi, GetLastError());
     if (mi) pPSetupDestroyMonitorInfo(mi);
 
@@ -96,6 +100,10 @@ static void test_PSetupDestroyMonitorInfo(VOID)
 
     SetLastError(0xdeadbeef);
     mi = pPSetupCreateMonitorInfo(NULL, NULL, NULL);
+    if (!mi && (GetLastError() == RPC_S_SERVER_UNAVAILABLE)) {
+        win_skip("The service 'Spooler' is required for many tests\n");
+        return;
+    }
     ok( mi != NULL, "got %p with %u (expected '!= NULL')\n", mi, GetLastError());
 
     if (!mi) return;
@@ -105,7 +113,7 @@ static void test_PSetupDestroyMonitorInfo(VOID)
     /* lasterror is returned */
     trace("returned with %u\n", GetLastError());
 
-    /* Try to destroy the handle twice crash with native ntprint.dll */
+    /* Trying to destroy the handle twice crashes with native ntprint.dll */
     if (0) {
         SetLastError(0xdeadbeef);
         pPSetupDestroyMonitorInfo(mi);