Skip to content
Snippets Groups Projects
Commit 7cd5cc2e authored by Francois Gouget's avatar Francois Gouget Committed by Alexandre Julliard
Browse files

crypt32/tests: Fix a registerOIDInfo() failure when missing elevated privileges.

parent 71a43335
No related branches found
No related tags found
No related merge requests found
......@@ -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");
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment