advapi: Improve SetEntriesInAclW stub.

This commit is contained in:
Jacek Caban 2007-03-19 15:05:52 +01:00 committed by Alexandre Julliard
parent 112257e59d
commit 2cd033eee1
2 changed files with 13 additions and 1 deletions

View File

@ -2921,7 +2921,8 @@ DWORD WINAPI SetEntriesInAclW( ULONG count, PEXPLICIT_ACCESSW pEntries,
PACL OldAcl, PACL* NewAcl ) PACL OldAcl, PACL* NewAcl )
{ {
FIXME("%d %p %p %p\n",count,pEntries,OldAcl,NewAcl); FIXME("%d %p %p %p\n",count,pEntries,OldAcl,NewAcl);
return ERROR_CALL_NOT_IMPLEMENTED; *NewAcl = NULL;
return ERROR_SUCCESS;
} }
/****************************************************************************** /******************************************************************************

View File

@ -1686,6 +1686,16 @@ static void test_impersonation_level(void)
HeapFree(GetProcessHeap(), 0, PrivilegeSet); HeapFree(GetProcessHeap(), 0, PrivilegeSet);
} }
static void test_SetEntriesInAcl(void)
{
ACL *acl = (ACL*)0xdeadbeef;
DWORD res;
res = SetEntriesInAclW(0, NULL, NULL, &acl);
ok(res == ERROR_SUCCESS, "SetEntriesInAcl failed: %u\n", res);
ok(acl == NULL, "acl=%p, expected NULL\n", acl);
}
START_TEST(security) START_TEST(security)
{ {
init(); init();
@ -1706,4 +1716,5 @@ START_TEST(security)
test_LookupAccountName(); test_LookupAccountName();
test_process_security(); test_process_security();
test_impersonation_level(); test_impersonation_level();
test_SetEntriesInAcl();
} }