crypt32/tests: Skip test if we don't have enough rights.
This commit is contained in:
parent
795087bcc1
commit
24e4267bf9
|
@ -449,9 +449,13 @@ static void test_getDefaultOIDFunctionAddress(void)
|
||||||
"Expected ERROR_FILE_NOT_FOUND, got %d\n", GetLastError());
|
"Expected ERROR_FILE_NOT_FOUND, got %d\n", GetLastError());
|
||||||
|
|
||||||
/* Even with a registered dll, this fails (since the dll doesn't exist) */
|
/* Even with a registered dll, this fails (since the dll doesn't exist) */
|
||||||
|
SetLastError(0xdeadbeef);
|
||||||
ret = CryptRegisterDefaultOIDFunction(0, "CertDllOpenStoreProv", 0,
|
ret = CryptRegisterDefaultOIDFunction(0, "CertDllOpenStoreProv", 0,
|
||||||
bogusDll);
|
bogusDll);
|
||||||
ok(ret, "CryptRegisterDefaultOIDFunction failed: %08x\n", GetLastError());
|
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,
|
ret = CryptGetDefaultOIDFunctionAddress(set, 0, NULL, 0, &funcAddr,
|
||||||
&hFuncAddr);
|
&hFuncAddr);
|
||||||
ok(!ret && GetLastError() == ERROR_FILE_NOT_FOUND,
|
ok(!ret && GetLastError() == ERROR_FILE_NOT_FOUND,
|
||||||
|
|
Loading…
Reference in New Issue