mirror of
https://github.com/reactos/reactos.git
synced 2025-05-08 19:27:00 +00:00
fix ConvertStringSidToSidW
svn path=/trunk/; revision=37939
This commit is contained in:
parent
e03e004690
commit
8019ca7330
1 changed files with 3 additions and 1 deletions
|
@ -1793,6 +1793,8 @@ ConvertStringSidToSidW(IN LPCWSTR StringSid,
|
||||||
if (*StringSid == '-')
|
if (*StringSid == '-')
|
||||||
StringSid++;
|
StringSid++;
|
||||||
|
|
||||||
|
pisid->SubAuthority[i] = atoiW(StringSid);
|
||||||
|
|
||||||
while (*StringSid)
|
while (*StringSid)
|
||||||
{
|
{
|
||||||
while (*StringSid && *StringSid != '-')
|
while (*StringSid && *StringSid != '-')
|
||||||
|
@ -1800,7 +1802,7 @@ ConvertStringSidToSidW(IN LPCWSTR StringSid,
|
||||||
if (*StringSid == '-')
|
if (*StringSid == '-')
|
||||||
StringSid++;
|
StringSid++;
|
||||||
|
|
||||||
pisid->SubAuthority[i++] = atoiW(StringSid);
|
pisid->SubAuthority[++i] = atoiW(StringSid);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (i != pisid->SubAuthorityCount)
|
if (i != pisid->SubAuthorityCount)
|
||||||
|
|
Loading…
Reference in a new issue