crypt32/tests: Fix a registerOIDInfo() failure when missing elevated privileges.
Signed-off-by: Francois Gouget <fgouget@codeweavers.com> Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
71a43335ab
commit
7cd5cc2ecb
|
@ -646,7 +646,8 @@ static void test_registerOIDInfo(void)
|
||||||
SetLastError(0xdeadbeef);
|
SetLastError(0xdeadbeef);
|
||||||
ret = CryptUnregisterOIDInfo(&info1);
|
ret = CryptUnregisterOIDInfo(&info1);
|
||||||
ok(!ret, "should fail\n");
|
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);
|
info2 = CryptFindOIDInfo(CRYPT_OID_INFO_OID_KEY, (void *)test_oid, 0);
|
||||||
ok(!info2, "should fail\n");
|
ok(!info2, "should fail\n");
|
||||||
|
|
Loading…
Reference in New Issue