advapi32: Fix a typo in ParseStringAclToAcl which caused the ACE to be written inside of the ACL memory.
This commit is contained in:
parent
f56fe2c1bc
commit
60d847b074
|
@ -3178,7 +3178,7 @@ static BOOL ParseStringAclToAcl(LPCWSTR StringAcl, LPDWORD lpdwFlags,
|
|||
return FALSE;
|
||||
|
||||
if (pAcl) /* pAce is only useful if we're setting values */
|
||||
pAce = (PACCESS_ALLOWED_ACE) ((LPBYTE)pAcl + sizeof(PACL));
|
||||
pAce = (PACCESS_ALLOWED_ACE) (pAcl + 1);
|
||||
|
||||
/* Parse ACL flags */
|
||||
*lpdwFlags = ParseAclStringFlags(&StringAcl);
|
||||
|
|
Loading…
Reference in New Issue