Rémi Bernon : user32: Return WAIT_TIMEOUT in nulldrv_MsgWaitForMultipleObjectsEx.

Alexandre Julliard julliard at winehq.org
Mon May 17 15:45:32 CDT 2021


Module: wine
Branch: master
Commit: 702b52fe13fa08040bdd94400b3f4e5eec049d0a
URL:    https://source.winehq.org/git/wine.git/?a=commit;h=702b52fe13fa08040bdd94400b3f4e5eec049d0a

Author: Rémi Bernon <rbernon at codeweavers.com>
Date:   Fri May 14 13:40:06 2021 +0200

user32: Return WAIT_TIMEOUT in nulldrv_MsgWaitForMultipleObjectsEx.

When there's nothing to wait for.

Signed-off-by: Rémi Bernon <rbernon at codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>

---

 dlls/user32/driver.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/dlls/user32/driver.c b/dlls/user32/driver.c
index f769677d30d..54a888b16d9 100644
--- a/dlls/user32/driver.c
+++ b/dlls/user32/driver.c
@@ -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,
                                                         DWORD mask, DWORD flags )
 {
+    if (!count && !timeout) return WAIT_TIMEOUT;
     return WaitForMultipleObjectsEx( count, handles, flags & MWMO_WAITALL,
                                      timeout, flags & MWMO_ALERTABLE );
 }




More information about the wine-cvs mailing list