fail when there are no sub authorities

svn path=/trunk/; revision=37996
This commit is contained in:
Christoph von Wittich 2008-12-10 08:29:03 +00:00
parent 8ab21576b5
commit c7e268bb6b

View file

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