Commit 2cd033ee authored by Jacek Caban's avatar Jacek Caban Committed by Alexandre Julliard

advapi: Improve SetEntriesInAclW stub.

parent 112257e5
......@@ -2921,7 +2921,8 @@ DWORD WINAPI SetEntriesInAclW( ULONG count, PEXPLICIT_ACCESSW pEntries,
PACL OldAcl, PACL* NewAcl )
{
FIXME("%d %p %p %p\n",count,pEntries,OldAcl,NewAcl);
return ERROR_CALL_NOT_IMPLEMENTED;
*NewAcl = NULL;
return ERROR_SUCCESS;
}
/******************************************************************************
......
......@@ -1686,6 +1686,16 @@ static void test_impersonation_level(void)
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)
{
init();
......@@ -1706,4 +1716,5 @@ START_TEST(security)
test_LookupAccountName();
test_process_security();
test_impersonation_level();
test_SetEntriesInAcl();
}
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