winpr-comm: fixed _set_wait_mask() on previous commit

This commit is contained in:
Emmanuel Ledoux 2014-05-27 16:27:04 +02:00 committed by Emmanuel Ledoux
parent 1aeca8fbc7
commit ae3dd68b88
1 changed files with 1 additions and 1 deletions

View File

@ -1016,7 +1016,7 @@ static BOOL _set_wait_mask(WINPR_COMM *pComm, const ULONG *pWaitMask)
/* NB: ensure to leave the critical section before to return */
EnterCriticalSection(&pComm->EventsLock);
if (pComm->PendingEvents |= SERIAL_EV_FREERDP_CLOSING)
if (pComm->PendingEvents & SERIAL_EV_FREERDP_CLOSING)
{
return TRUE; /* returns without complaining */
}