Author: cwittich
Date: Wed Dec 10 02:29:03 2008
New Revision: 37996
URL:
http://svn.reactos.org/svn/reactos?rev=37996&view=rev
Log:
fail when there are no sub authorities
Modified:
trunk/reactos/dll/win32/advapi32/sec/sid.c
Modified: trunk/reactos/dll/win32/advapi32/sec/sid.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/advapi32/sec/sid…
==============================================================================
--- trunk/reactos/dll/win32/advapi32/sec/sid.c [iso-8859-1] (original)
+++ trunk/reactos/dll/win32/advapi32/sec/sid.c [iso-8859-1] Wed Dec 10 02:29:03 2008
@@ -1820,7 +1820,7 @@
}
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);