Commit 60d847b0 authored by Rob Shearman's avatar Rob Shearman Committed by Alexandre Julliard

advapi32: Fix a typo in ParseStringAclToAcl which caused the ACE to be written…

advapi32: Fix a typo in ParseStringAclToAcl which caused the ACE to be written inside of the ACL memory.
parent f56fe2c1
......@@ -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);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment