Nikolay Sivov : ole32/tests: Fixed CoGetPSClsid() test failures when running on limited account.

Alexandre Julliard julliard at wine.codeweavers.com
Mon Mar 7 08:50:37 CST 2016


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

Author: Nikolay Sivov <nsivov at codeweavers.com>
Date:   Sat Mar  5 08:02:19 2016 +0300

ole32/tests: Fixed CoGetPSClsid() test failures when running on limited account.

Signed-off-by: Nikolay Sivov <nsivov at codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>

---

 dlls/ole32/tests/compobj.c | 8 ++++++++
 1 file changed, 8 insertions(+)

diff --git a/dlls/ole32/tests/compobj.c b/dlls/ole32/tests/compobj.c
index 65a8fb5..183d8a0 100644
--- a/dlls/ole32/tests/compobj.c
+++ b/dlls/ole32/tests/compobj.c
@@ -1293,6 +1293,12 @@ static void test_CoGetPSClsid(void)
         ok(!res, "RegCreateKeyEx returned %d\n", res);
         res = RegCreateKeyExA(hkey_iface, clsidDeadBeef,
                               0, NULL, 0, KEY_ALL_ACCESS | opposite, NULL, &hkey, NULL);
+        if (res == ERROR_ACCESS_DENIED)
+        {
+            win_skip("Failed to create a key, skipping some of CoGetPSClsid() tests\n");
+            goto cleanup;
+        }
+
         ok(!res, "RegCreateKeyEx returned %d\n", res);
         res = RegCreateKeyExA(hkey, "ProxyStubClsid32",
                               0, NULL, 0, KEY_ALL_ACCESS | opposite, NULL, &hkey_psclsid, NULL);
@@ -1310,6 +1316,8 @@ static void test_CoGetPSClsid(void)
         RegCloseKey(hkey);
         res = pRegDeleteKeyExA(hkey_iface, clsidDeadBeef, opposite, 0);
         ok(!res, "RegDeleteKeyEx returned %d\n", res);
+
+    cleanup:
         RegCloseKey(hkey_iface);
     }
 




More information about the wine-cvs mailing list