From 089197fafbcea8edb9a8f7b55a201115f3f2010a Mon Sep 17 00:00:00 2001 From: Gurusamy Sarathy Date: Fri, 13 Dec 2002 09:31:59 -0800 Subject: win32_msgwait() problem Message-Id: <200212140132.gBE1Vxp02090@smtp3.ActiveState.com> p4raw-id: //depot/perl@18408 --- win32/win32.c | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'win32') 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 */ -- cgit v1.2.1