Merge pull request #5015 from chipitsine/cleanup

cleanup based on PVS analyzer findings
This commit is contained in:
akallabeth 2018-11-15 08:43:54 +01:00 committed by GitHub
commit cf2c8ef6ac
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View File

@ -547,7 +547,7 @@ DWORD WaitForMultipleObjects(DWORD nCount, const HANDLE* lpHandles, BOOL bWaitAl
if (!bWaitAll)
return (WAIT_OBJECT_0 + index);
if (bWaitAll && (signalled >= nCount))
if (signalled >= nCount)
return (WAIT_OBJECT_0);
signal_handled = TRUE;

View File

@ -405,7 +405,7 @@ WINPR_SAM_ENTRY* SamLookupUserW(WINPR_SAM* sam, LPWSTR User, UINT32 UserLength,
free(EntryUser);
if (UserMatch && DomainMatch)
if (UserMatch)
{
Found = TRUE;
break;