mirror of
https://github.com/reactos/reactos.git
synced 2025-01-13 01:22:03 +00:00
fail when there are no sub authorities
svn path=/trunk/; revision=37996
This commit is contained in:
parent
8ab21576b5
commit
c7e268bb6b
1 changed files with 1 additions and 1 deletions
|
@ -1820,7 +1820,7 @@ ConvertStringSidToSidW(IN LPCWSTR StringSid,
|
|||
}
|
||||
i = 0;
|
||||
ret = FALSE;
|
||||
csubauth = ((cBytes - sizeof(SID)) / sizeof(DWORD)) + 1;
|
||||
csubauth = ((cBytes - GetSidLengthRequired(0)) / sizeof(DWORD));
|
||||
|
||||
StringSid += 2; /* Advance to Revision */
|
||||
pisid->Revision = atoiW(StringSid);
|
||||
|
|
Loading…
Reference in a new issue