Commit ccfa9ad8 authored by Rob Shearman's avatar Rob Shearman Committed by Alexandre Julliard

advapi32: Set the right pointer so that StringAcl is updated correct in ParseAceStringRights.

The number of allowed hex digits should be 8, not 6.
parent 6c24386e
......@@ -3125,10 +3125,10 @@ static DWORD ParseAceStringRights(LPCWSTR* StringAcl)
while (*p && *p != ';')
p++;
if (p - szAcl <= 8)
if (p - szAcl <= 10 /* 8 hex digits + "0x" */ )
{
rights = strtoulW(szAcl, NULL, 16);
*StringAcl = p;
szAcl = p;
}
else
WARN("Invalid rights string format: %s\n", debugstr_wn(szAcl, p - szAcl));
......
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