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

The number of allowed hex digits should be 8, not 6.
This commit is contained in:
Rob Shearman 2007-07-18 18:12:43 +01:00 committed by Alexandre Julliard
parent 6c24386e03
commit ccfa9ad8df
1 changed files with 2 additions and 2 deletions

View File

@ -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));