X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/0f00be4b33cdf013af6b64bfbd0e6841e7f0d574..b9efe021b554fa3967d1442cf758435c5cd5ae8f:/src/msw/thread.cpp diff --git a/src/msw/thread.cpp b/src/msw/thread.cpp index 24aa2a43fd..615451a3f5 100644 --- a/src/msw/thread.cpp +++ b/src/msw/thread.cpp @@ -705,14 +705,17 @@ wxThreadInternal::WaitForTerminate(wxCriticalSection& cs, } } +#if !defined(QS_ALLPOSTMESSAGE) +#define QS_ALLPOSTMESSAGE 0 +#endif + result = ::MsgWaitForMultipleObjects ( 1, // number of objects to wait for &m_hThread, // the objects false, // don't wait for all objects INFINITE, // no timeout - QS_ALLINPUT | // return as soon as there are any events - QS_ALLPOSTMESSAGE + QS_ALLINPUT|QS_ALLPOSTMESSAGE // return as soon as there are any events ); switch ( result )