summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--examples/winexe/winexesvc.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/examples/winexe/winexesvc.c b/examples/winexe/winexesvc.c
index f993c9a9c69..ca270a80444 100644
--- a/examples/winexe/winexesvc.c
+++ b/examples/winexe/winexesvc.c
@@ -68,7 +68,6 @@ static int CreatePipesSA()
.Trustee = {
.TrusteeForm = TRUSTEE_IS_SID,
.TrusteeType = TRUSTEE_IS_GROUP,
- .ptstrName = (LPTSTR)pAdminSID,
},
};
SID_IDENTIFIER_AUTHORITY SIDAuthNT = {SECURITY_NT_AUTHORITY};
@@ -86,6 +85,8 @@ static int CreatePipesSA()
return 0;
}
+ ea.Trustee.ptstrName = (LPTSTR)pAdminSID;
+
/* Create a new ACL that contains the new ACEs */
dwRes = SetEntriesInAcl(1, &ea, NULL, &pACL);
if (ERROR_SUCCESS != dwRes) {