[PATCH] qmgr/tests: Detect, when the service is disabled

Detlef Riekenberg wine.dev at web.de
Wed Aug 11 14:25:32 CDT 2010


---
 dlls/qmgr/tests/qmgr.c |    5 +++++
 1 files changed, 5 insertions(+), 0 deletions(-)

diff --git a/dlls/qmgr/tests/qmgr.c b/dlls/qmgr/tests/qmgr.c
index 8c95586..6dc9c1c 100644
--- a/dlls/qmgr/tests/qmgr.c
+++ b/dlls/qmgr/tests/qmgr.c
@@ -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");
-- 
1.7.0.4




More information about the wine-patches mailing list