Commit c9b0d7f1 authored by Detlef Riekenberg's avatar Detlef Riekenberg Committed by Alexandre Julliard

qmgr/tests: Detect when the service is disabled.

parent f999060f
......@@ -38,6 +38,11 @@ test_CreateInstance(void)
/* Creating BITS instance */
hres = CoCreateInstance(&CLSID_BackgroundCopyManager, NULL, CLSCTX_LOCAL_SERVER,
&IID_IBackgroundCopyManager, (void **) &manager);
if(hres == __HRESULT_FROM_WIN32(ERROR_SERVICE_DISABLED)) {
skip("Needed Service is disabled\n");
return;
}
ok(hres == S_OK, "CoCreateInstance failed: %08x\n", hres);
if(hres != S_OK) {
skip("Unable to create bits instance.\n");
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment