Commit 24e4267b authored by Paul Vriens's avatar Paul Vriens Committed by Alexandre Julliard

crypt32/tests: Skip test if we don't have enough rights.

parent 795087bc
......@@ -449,8 +449,12 @@ static void test_getDefaultOIDFunctionAddress(void)
"Expected ERROR_FILE_NOT_FOUND, got %d\n", GetLastError());
/* Even with a registered dll, this fails (since the dll doesn't exist) */
SetLastError(0xdeadbeef);
ret = CryptRegisterDefaultOIDFunction(0, "CertDllOpenStoreProv", 0,
bogusDll);
if (!ret && GetLastError() == ERROR_ACCESS_DENIED)
skip("Need admin rights\n");
else
ok(ret, "CryptRegisterDefaultOIDFunction failed: %08x\n", GetLastError());
ret = CryptGetDefaultOIDFunctionAddress(set, 0, NULL, 0, &funcAddr,
&hFuncAddr);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment