From: Francesco Montorsi Date: Fri, 20 Mar 2009 01:20:44 +0000 (+0000) Subject: remove unneeded wxCHECK_MSG: GetNextMessage() can get the msg even if the event loop... X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/be8ddd37e3435dad37c5502a8d2894ea4cfb71f9 remove unneeded wxCHECK_MSG: GetNextMessage() can get the msg even if the event loop is not running; the check breaks the: while ( loop->Pending() ) loop->Dispatch(); snippet in console apps since wxConsoleEventLoop::Dispatch calls GetNextMessage() (see also the TimerEventTestCase cppunit). git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@59636 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/src/msw/evtloop.cpp b/src/msw/evtloop.cpp index 81276cfaee..5c5be481cf 100644 --- a/src/msw/evtloop.cpp +++ b/src/msw/evtloop.cpp @@ -79,8 +79,6 @@ bool wxMSWEventLoopBase::Pending() const bool wxMSWEventLoopBase::GetNextMessage(WXMSG* msg) { - wxCHECK_MSG( IsRunning(), false, _T("can't get messages if not running") ); - const BOOL rc = ::GetMessage(msg, NULL, 0, 0); if ( rc == 0 )