user32: Return WAIT_TIMEOUT in nulldrv_MsgWaitForMultipleObjectsEx.
When there's nothing to wait for. Signed-off-by: Rémi Bernon <rbernon@codeweavers.com> Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
60f6a37f95
commit
702b52fe13
|
@ -305,6 +305,7 @@ static void CDECL nulldrv_GetDC( HDC hdc, HWND hwnd, HWND top_win, const RECT *w
|
||||||
static DWORD CDECL nulldrv_MsgWaitForMultipleObjectsEx( DWORD count, const HANDLE *handles, DWORD timeout,
|
static DWORD CDECL nulldrv_MsgWaitForMultipleObjectsEx( DWORD count, const HANDLE *handles, DWORD timeout,
|
||||||
DWORD mask, DWORD flags )
|
DWORD mask, DWORD flags )
|
||||||
{
|
{
|
||||||
|
if (!count && !timeout) return WAIT_TIMEOUT;
|
||||||
return WaitForMultipleObjectsEx( count, handles, flags & MWMO_WAITALL,
|
return WaitForMultipleObjectsEx( count, handles, flags & MWMO_WAITALL,
|
||||||
timeout, flags & MWMO_ALERTABLE );
|
timeout, flags & MWMO_ALERTABLE );
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue