From 4b7a5aaca63da6fedea79acd8e8b8447f0f3246d Mon Sep 17 00:00:00 2001 From: Robert Shearman Date: Mon, 12 Jun 2006 16:45:24 +0100 Subject: [PATCH] advapi32: Fix the parsing of string SIDs with multiple sub-authorities. --- dlls/advapi32/security.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/dlls/advapi32/security.c b/dlls/advapi32/security.c index 3ee550a5527..0644f15b096 100644 --- a/dlls/advapi32/security.c +++ b/dlls/advapi32/security.c @@ -3404,6 +3404,8 @@ static BOOL ParseStringSidToSid(LPCWSTR StringSid, PSID pSid, LPDWORD cBytes) { while (*StringSid && *StringSid != '-') StringSid++; + if (*StringSid == '-') + StringSid++; pisid->SubAuthority[i++] = atoiW(StringSid); }