Commit 67429f3a authored by Jinoh Kang's avatar Jinoh Kang Committed by Alexandre Julliard

advapi32/tests: Check that each ACE is ACCESS_ALLOWED_ACE in the default DACL.

To ensure type safety, without complicating the test.
parent 31d2a87b
......@@ -6368,6 +6368,8 @@ static void test_default_dacl_owner_sid(void)
found = FALSE;
while (GetAce( dacl, index++, (void **)&ace ))
{
ok( ace->Header.AceType == ACCESS_ALLOWED_ACE_TYPE,
"expected ACCESS_ALLOWED_ACE_TYPE, got %d\n", ace->Header.AceType );
if (EqualSid( &ace->SidStart, owner )) found = TRUE;
}
ok( found, "owner sid not found in dacl\n" );
......
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