From 2cd033eee1a2f442d40a4c1663d500ac7e5ef9c0 Mon Sep 17 00:00:00 2001 From: Jacek Caban Date: Mon, 19 Mar 2007 15:05:52 +0100 Subject: [PATCH] advapi: Improve SetEntriesInAclW stub. --- dlls/advapi32/security.c | 3 ++- dlls/advapi32/tests/security.c | 11 +++++++++++ 2 files changed, 13 insertions(+), 1 deletion(-) diff --git a/dlls/advapi32/security.c b/dlls/advapi32/security.c index a0b4b3c8aec..1dbc5e32edf 100644 --- a/dlls/advapi32/security.c +++ b/dlls/advapi32/security.c @@ -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; } /****************************************************************************** diff --git a/dlls/advapi32/tests/security.c b/dlls/advapi32/tests/security.c index 7f44203d9b1..dd986b16cca 100644 --- a/dlls/advapi32/tests/security.c +++ b/dlls/advapi32/tests/security.c @@ -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(); }