crypt32/tests: Skip tests if we don't have enough rights.
This commit is contained in:
parent
1871743543
commit
c44d22466c
|
@ -84,6 +84,11 @@ static void test_AddRemoveProvider(void)
|
|||
newprov.pwszRemoveFuncName = dummyfunction;
|
||||
SetLastError(0xdeadbeef);
|
||||
ret = CryptSIPAddProvider(&newprov);
|
||||
if (!ret && GetLastError() == ERROR_ACCESS_DENIED)
|
||||
{
|
||||
skip("Need admin rights\n");
|
||||
return;
|
||||
}
|
||||
ok ( ret, "CryptSIPAddProvider should have succeeded\n");
|
||||
|
||||
/* Dummy provider will be deleted, but the function still fails because
|
||||
|
|
Loading…
Reference in New Issue