mirror of
https://github.com/reactos/wine.git
synced 2024-11-25 20:59:54 +00:00
Fix String SID parsing.
This commit is contained in:
parent
dc2e1399ef
commit
c218e74184
@ -3135,7 +3135,7 @@ static BOOL ParseStringSidToSid(LPCWSTR StringSid, PSID pSid, LPDWORD cBytes)
|
||||
return TRUE;
|
||||
}
|
||||
|
||||
if (*StringSid != 'S' || *StringSid != '-') /* S-R-I-S-S */
|
||||
if (StringSid[0] == 'S' && StringSid[1] == '-') /* S-R-I-S-S */
|
||||
{
|
||||
DWORD i = 0, identAuth;
|
||||
DWORD csubauth = ((*cBytes - sizeof(SID)) / sizeof(DWORD)) + 1;
|
||||
|
Loading…
Reference in New Issue
Block a user