]> asedeno.scripts.mit.edu Git - PuTTY_svn.git/commitdiff
Pass the right number of entries to SetEntriesInAcl!
authorSimon Tatham <anakin@pobox.com>
Fri, 22 Nov 2013 19:41:45 +0000 (19:41 +0000)
committerSimon Tatham <anakin@pobox.com>
Fri, 22 Nov 2013 19:41:45 +0000 (19:41 +0000)
git-svn-id: http://svn.tartarus.org/sgt/putty@10093 cda61777-01e9-0310-a592-d414129be87e

windows/winsecur.c

index 05feafd273713bed44e0bf0f177a63ece2faa8cf..f5eee440e74deac446de03784f30ef9889aab58f 100644 (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;