advapi32/tests: Skip tests for ACL file info if ACL info not stored.

This commit is contained in:
Austin Lund 2009-11-18 20:52:59 +10:00 committed by Alexandre Julliard
parent 085c39342b
commit 5c45c35e4e
1 changed files with 8 additions and 4 deletions

View File

@ -3156,8 +3156,10 @@ static void test_GetSecurityInfo(void)
ok(sd != NULL, "GetSecurityInfo\n");
ok(owner != NULL, "GetSecurityInfo\n");
ok(group != NULL, "GetSecurityInfo\n");
ok(dacl != NULL, "GetSecurityInfo\n");
if (dacl != NULL)
ok(IsValidAcl(dacl), "GetSecurityInfo\n");
else
win_skip("No ACL information returned\n");
LocalFree(sd);
@ -3176,8 +3178,10 @@ static void test_GetSecurityInfo(void)
ok(ret == ERROR_SUCCESS, "GetSecurityInfo returned %d\n", ret);
ok(owner != NULL, "GetSecurityInfo\n");
ok(group != NULL, "GetSecurityInfo\n");
ok(dacl != NULL, "GetSecurityInfo\n");
if (dacl != NULL)
ok(IsValidAcl(dacl), "GetSecurityInfo\n");
else
win_skip("No ACL information returned\n");
CloseHandle(obj);
}