From: Simon Tatham Date: Fri, 22 Nov 2013 19:41:45 +0000 (+0000) Subject: Pass the right number of entries to SetEntriesInAcl! X-Git-Url: https://asedeno.scripts.mit.edu/gitweb/?a=commitdiff_plain;h=c05bbd229f25f497f2f675d5fc5c07fcba2e22a4;p=PuTTY_svn.git Pass the right number of entries to SetEntriesInAcl! git-svn-id: http://svn.tartarus.org/sgt/putty@10093 cda61777-01e9-0310-a592-d414129be87e --- diff --git a/windows/winsecur.c b/windows/winsecur.c index 05feafd2..f5eee440 100644 --- a/windows/winsecur.c +++ b/windows/winsecur.c @@ -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;