mirror of
https://github.com/ApfelTeeSaft/reactos.git
synced 2026-09-02 04:13:34 +00:00
fix ConvertStringSidToSidW
svn path=/trunk/; revision=37939
This commit is contained in:
@@ -1793,6 +1793,8 @@ ConvertStringSidToSidW(IN LPCWSTR StringSid,
|
||||
if (*StringSid == '-')
|
||||
StringSid++;
|
||||
|
||||
pisid->SubAuthority[i] = atoiW(StringSid);
|
||||
|
||||
while (*StringSid)
|
||||
{
|
||||
while (*StringSid && *StringSid != '-')
|
||||
@@ -1800,7 +1802,7 @@ ConvertStringSidToSidW(IN LPCWSTR StringSid,
|
||||
if (*StringSid == '-')
|
||||
StringSid++;
|
||||
|
||||
pisid->SubAuthority[i++] = atoiW(StringSid);
|
||||
pisid->SubAuthority[++i] = atoiW(StringSid);
|
||||
}
|
||||
|
||||
if (i != pisid->SubAuthorityCount)
|
||||
|
||||
Reference in New Issue
Block a user