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:
parent
d1e4f9c8fb
commit
df328536a9
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user