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

This commit is contained in:
Paul Vriens 2007-06-13 15:52:16 +02:00 committed by Alexandre Julliard
parent 1871743543
commit c44d22466c
1 changed files with 5 additions and 0 deletions

View File

@ -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