Commit 4b7a5aac authored by Robert Shearman's avatar Robert Shearman Committed by Alexandre Julliard

advapi32: Fix the parsing of string SIDs with multiple sub-authorities.

parent 8a4088d8
......@@ -3404,6 +3404,8 @@ static BOOL ParseStringSidToSid(LPCWSTR StringSid, PSID pSid, LPDWORD cBytes)
{
while (*StringSid && *StringSid != '-')
StringSid++;
if (*StringSid == '-')
StringSid++;
pisid->SubAuthority[i++] = atoiW(StringSid);
}
......
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