We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c7839fa commit 50f3273Copy full SHA for 50f3273
examples/winexe/winexesvc.c
@@ -68,7 +68,6 @@ static int CreatePipesSA()
68
.Trustee = {
69
.TrusteeForm = TRUSTEE_IS_SID,
70
.TrusteeType = TRUSTEE_IS_GROUP,
71
- .ptstrName = (LPTSTR)pAdminSID,
72
},
73
};
74
SID_IDENTIFIER_AUTHORITY SIDAuthNT = {SECURITY_NT_AUTHORITY};
@@ -86,6 +85,8 @@ static int CreatePipesSA()
86
85
return 0;
87
}
88
+ ea.Trustee.ptstrName = (LPTSTR)pAdminSID;
89
+
90
/* Create a new ACL that contains the new ACEs */
91
dwRes = SetEntriesInAcl(1, &ea, NULL, &pACL);
92
if (ERROR_SUCCESS != dwRes) {
0 commit comments