X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/cea62f9c12daeab0e69308c93dd1bd6d5547b4c0..f0f4301209cc58eb5562be289f49bf0fb9e7d6b8:/src/msw/evtloop.cpp diff --git a/src/msw/evtloop.cpp b/src/msw/evtloop.cpp index 1012498409..1d52ec45f3 100644 --- a/src/msw/evtloop.cpp +++ b/src/msw/evtloop.cpp @@ -41,6 +41,11 @@ #include "wx/msw/private.h" +// For MB_TASKMODAL +#ifdef __WXWINCE__ +#include "wx/msw/wince/missing.h" +#endif + #if wxUSE_THREADS #include "wx/thread.h" @@ -227,8 +232,8 @@ bool wxEventLoopImpl::SendIdleMessage() wxEventLoopImpl::wxCatchAllResponse wxEventLoopImpl::OnCatchAll() { switch (::MessageBox(NULL, - _T("An unhandled exception occurred. 'Abort' will terminate the program,\r\n" - "'Retry' will close the current dialog, 'Ignore' will try to continue."), + _T("An unhandled exception occurred. 'Abort' will terminate the program,\r\n\ +'Retry' will close the current dialog, 'Ignore' will try to continue."), _T("Unhandled exception"), MB_ABORTRETRYIGNORE|MB_ICONERROR|MB_TASKMODAL)) { @@ -276,7 +281,7 @@ int wxEventLoop::Run() // wxModalEventLoop depends on this (so we can't just use ON_BLOCK_EXIT or // something similar here) #if wxUSE_EXCEPTIONS - bool retryAfterException; + bool retryAfterException = false; do { retryAfterException=false; #endif