From 68ee20e36d8db8d8844443ed90d435483a2bbfa0 Mon Sep 17 00:00:00 2001 From: Felix Nawothnig Date: Wed, 22 Jun 2005 12:00:01 +0000 Subject: [PATCH] Skip ACL tests on Win9x. --- dlls/advapi32/tests/security.c | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/dlls/advapi32/tests/security.c b/dlls/advapi32/tests/security.c index ae6095823d4..98c0578a0c9 100644 --- a/dlls/advapi32/tests/security.c +++ b/dlls/advapi32/tests/security.c @@ -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());