Francois Gouget : crypt32/tests: Fix a registerOIDInfo() failure when missing elevated privileges.
Alexandre Julliard
julliard at winehq.org
Thu Dec 17 15:50:26 CST 2020
Module: wine
Branch: master
Commit: 7cd5cc2ecbbf2ed841659add63cb18a4c709b3ec
URL: https://source.winehq.org/git/wine.git/?a=commit;h=7cd5cc2ecbbf2ed841659add63cb18a4c709b3ec
Author: Francois Gouget <fgouget at codeweavers.com>
Date: Thu Dec 17 10:29:57 2020 +0100
crypt32/tests: Fix a registerOIDInfo() failure when missing elevated privileges.
Signed-off-by: Francois Gouget <fgouget at codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>
---
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");
More information about the wine-cvs
mailing list