1
0
mirror of https://git.tartarus.org/simon/putty.git synced 2025-03-12 18:13:50 -05:00

Pass the right number of entries to SetEntriesInAcl!

[originally from svn r10093]
This commit is contained in:
Simon Tatham 2013-11-22 19:41:45 +00:00
parent d1e4f9c8fb
commit df328536a9

View File

@ -144,7 +144,7 @@ int make_private_security_descriptor(DWORD permissions,
ea[2].Trustee.TrusteeForm = TRUSTEE_IS_SID;
ea[2].Trustee.ptstrName = (LPTSTR)*networksid;
if (p_SetEntriesInAclA(2, ea, NULL, acl) != ERROR_SUCCESS || *acl == NULL) {
if (p_SetEntriesInAclA(3, ea, NULL, acl) != ERROR_SUCCESS || *acl == NULL) {
*error = dupprintf("unable to construct ACL: %s",
win_strerror(GetLastError()));
goto cleanup;