diff options
Diffstat (limited to 'win32/win32.c')
-rw-r--r-- | win32/win32.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/win32/win32.c b/win32/win32.c index c03c3be789..070ee9c132 100644 --- a/win32/win32.c +++ b/win32/win32.c @@ -1912,6 +1912,8 @@ win32_async_check(pTHX) return ours; } +/* This function will not return until the timeout has elapsed, or until + * one of the handles is ready. */ DllExport DWORD win32_msgwait(pTHX_ DWORD count, LPHANDLE handles, DWORD timeout, LPDWORD resultp) { @@ -1936,10 +1938,7 @@ win32_msgwait(pTHX_ DWORD count, LPHANDLE handles, DWORD timeout, LPDWORD result } if (result == WAIT_OBJECT_0 + count) { /* Message has arrived - check it */ - if (win32_async_check(aTHX)) { - /* was one of ours */ - break; - } + (void)win32_async_check(aTHX); } else { /* Not timeout or message - one of handles is ready */ |