[PATCH v2] crypt32/tests: Fix a registerOIDInfo() failure when missing elevated privileges.

Francois Gouget fgouget at codeweavers.com
Thu Dec 17 03:29:57 CST 2020


Signed-off-by: Francois Gouget <fgouget at codeweavers.com>
---

With my apologies for the previous botched attempt.

 dlls/crypt32/tests/oid.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/dlls/crypt32/tests/oid.c b/dlls/crypt32/tests/oid.c
index ae03bba90e8..7e7c1310dd2 100644
--- a/dlls/crypt32/tests/oid.c
+++ b/dlls/crypt32/tests/oid.c
@@ -646,7 +646,8 @@ static void test_registerOIDInfo(void)
     SetLastError(0xdeadbeef);
     ret = CryptUnregisterOIDInfo(&info1);
     ok(!ret, "should fail\n");
-    ok(GetLastError() == ERROR_FILE_NOT_FOUND, "got %u\n", GetLastError());
+    ok(GetLastError() == ERROR_FILE_NOT_FOUND ||
+       GetLastError() == ERROR_ACCESS_DENIED, "got %u\n", GetLastError());
 
     info2 = CryptFindOIDInfo(CRYPT_OID_INFO_OID_KEY, (void *)test_oid, 0);
     ok(!info2, "should fail\n");
-- 
2.20.1



More information about the wine-devel mailing list