Skip ACL tests on Win9x.

This commit is contained in:
Felix Nawothnig 2005-06-22 12:00:01 +00:00 committed by Alexandre Julliard
parent 9e5b4d4019
commit 68ee20e36d
1 changed files with 9 additions and 4 deletions

View File

@ -448,6 +448,15 @@ static void test_AccessCheck(void)
PRIVILEGE_SET *PrivSet;
BOOL res;
Acl = HeapAlloc(GetProcessHeap(), 0, 256);
res = InitializeAcl(Acl, 256, ACL_REVISION);
if(!res && GetLastError() == ERROR_CALL_NOT_IMPLEMENTED)
{
trace("ACLs not implemented - skipping tests\n");
return;
}
ok(res, "InitializeAcl failed with error %ld\n", GetLastError());
res = AllocateAndInitializeSid( &SIDAuthWorld, 1, SECURITY_WORLD_RID, 0, 0, 0, 0, 0, 0, 0, &EveryoneSid);
ok(res, "AllocateAndInitializeSid failed with error %ld\n", GetLastError());
@ -459,10 +468,6 @@ static void test_AccessCheck(void)
DOMAIN_ALIAS_RID_USERS, 0, 0, 0, 0, 0, 0, &UsersSid);
ok(res, "AllocateAndInitializeSid failed with error %ld\n", GetLastError());
Acl = HeapAlloc(GetProcessHeap(), 0, 256);
res = InitializeAcl(Acl, 256, ACL_REVISION);
ok(res, "InitializeAcl failed with error %ld\n", GetLastError());
res = AddAccessAllowedAce(Acl, ACL_REVISION, KEY_READ, EveryoneSid);
ok(res, "AddAccessAllowedAceEx failed with error %ld\n", GetLastError());