ntprint: Do not fail when the spooler service was stopped.

oldstable
Detlef Riekenberg 2012-06-12 21:56:06 +02:00 committed by Alexandre Julliard
parent 034de95550
commit 0e997674c5
1 changed files with 8 additions and 0 deletions

View 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 test\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 test\n");
return;
}
ok( mi != NULL, "got %p with %u (expected '!= NULL')\n", mi, GetLastError());
if (!mi) return;