Commit 8fae3635 authored by Paul Vriens's avatar Paul Vriens Committed by Alexandre Julliard

advapi32/tests: Use skip when we don't have enough rights.

parent 24123e86
...@@ -84,7 +84,10 @@ static void test_lsa(void) ...@@ -84,7 +84,10 @@ static void test_lsa(void)
PPOLICY_DNS_DOMAIN_INFO dns_domain_info; PPOLICY_DNS_DOMAIN_INFO dns_domain_info;
status = pLsaQueryInformationPolicy(handle, PolicyAuditEventsInformation, (PVOID*)&audit_events_info); status = pLsaQueryInformationPolicy(handle, PolicyAuditEventsInformation, (PVOID*)&audit_events_info);
ok(status == STATUS_SUCCESS, "LsaQueryInformationPolicy(PolicyAuditEventsInformation) failed, returned 0x%08x\n", status); if (status == STATUS_ACCESS_DENIED)
skip("Not enought rights to retrieve PolicyAuditEventsInformation\n");
else
ok(status == STATUS_SUCCESS, "LsaQueryInformationPolicy(PolicyAuditEventsInformation) failed, returned 0x%08x\n", status);
if (status == STATUS_SUCCESS) { if (status == STATUS_SUCCESS) {
pLsaFreeMemory((LPVOID)audit_events_info); pLsaFreeMemory((LPVOID)audit_events_info);
} }
......
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