mirror of
git://source.winehq.org/git/wine.git
synced 2024-10-31 11:43:31 +00:00
Mask out MWMO_WAITALL if only server queue handle was passed in.
This commit is contained in:
parent
a45df5d991
commit
42c4d27842
1 changed files with 3 additions and 0 deletions
|
@ -165,6 +165,9 @@ DWORD X11DRV_MsgWaitForMultipleObjectsEx( DWORD count, const HANDLE *handles,
|
|||
return WaitForMultipleObjectsEx( count, handles, flags & MWMO_WAITALL,
|
||||
timeout, flags & MWMO_ALERTABLE );
|
||||
|
||||
/* check whether only server queue handle was passed in */
|
||||
if (count < 2) flags &= ~MWMO_WAITALL;
|
||||
|
||||
for (i = 0; i < count; i++) new_handles[i] = handles[i];
|
||||
new_handles[count] = data->display_fd;
|
||||
|
||||
|
|
Loading…
Reference in a new issue