X-Git-Url: https://git.reactos.org/?p=reactos.git;a=blobdiff_plain;f=reactos%2Fdll%2Fwin32%2Fadvapi32%2Fsec%2Fsid.c;h=ed466a589141ac28e78f036fa36f8af6fccd03d5;hp=6dac3dac683192f65f575c4fe4e4bdf65de65ec7;hb=7a57ed58196c25a90ff8168465e8786218920701;hpb=59b9f20eeeba2fa1c592deb7cf441c68b00eba9c;ds=sidebyside diff --git a/reactos/dll/win32/advapi32/sec/sid.c b/reactos/dll/win32/advapi32/sec/sid.c index 6dac3dac683..ed466a58914 100644 --- a/reactos/dll/win32/advapi32/sec/sid.c +++ b/reactos/dll/win32/advapi32/sec/sid.c @@ -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 */ {