mirror of
git://source.winehq.org/git/wine.git
synced 2024-10-31 12:54:13 +00:00
Fix String SID parsing.
This commit is contained in:
parent
dc2e1399ef
commit
c218e74184
1 changed files with 1 additions and 1 deletions
|
@ -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 a new issue