[ADVAPI32]
authorChristoph von Wittich <christoph_vw@reactos.org>
Mon, 15 Mar 2010 15:44:35 +0000 (15:44 +0000)
committerChristoph von Wittich <christoph_vw@reactos.org>
Mon, 15 Mar 2010 15:44:35 +0000 (15:44 +0000)
sync ParseStringSidToSid with wine 1.1.40

svn path=/trunk/; revision=46207

reactos/dll/win32/advapi32/sec/sid.c

index 6dac3da..ed466a5 100644 (file)
@@ -805,6 +805,9 @@ static BOOL ParseStringSidToSid(LPCWSTR StringSid, PSID pSid, LPDWORD cBytes)
         return FALSE;
     }
 
+    while (*StringSid == ' ')
+        StringSid++;
+
     *cBytes = ComputeStringSidSize(StringSid);
     if (!pisid) /* Simply compute the size */
     {