Mask out MWMO_WAITALL if only server queue handle was passed in.

This commit is contained in:
Dmitry Timoshkov 2003-05-19 19:07:32 +00:00 committed by Alexandre Julliard
parent a45df5d991
commit 42c4d27842
1 changed files with 3 additions and 0 deletions

View File

@ -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;