Commit c44d2246 authored by Paul Vriens's avatar Paul Vriens Committed by Alexandre Julliard

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

parent 18717435
......@@ -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
......
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