Author: cwittich
Date: Mon Dec 8 09:51:53 2008
New Revision: 37939
URL:
http://svn.reactos.org/svn/reactos?rev=37939&view=rev
Log:
fix ConvertStringSidToSidW
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] Mon Dec 8 09:51:53 2008
@@ -1793,6 +1793,8 @@
if (*StringSid == '-')
StringSid++;
+ pisid->SubAuthority[i] = atoiW(StringSid);
+
while (*StringSid)
{
while (*StringSid && *StringSid != '-')
@@ -1800,7 +1802,7 @@
if (*StringSid == '-')
StringSid++;
- pisid->SubAuthority[i++] = atoiW(StringSid);
+ pisid->SubAuthority[++i] = atoiW(StringSid);
}
if (i != pisid->SubAuthorityCount)