X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/5df41a232d486930dce15dfb9fe4502a36417fcd..98840d95db7ab85159dc63d523864b2523d48cae:/src/msw/evtloop.cpp diff --git a/src/msw/evtloop.cpp b/src/msw/evtloop.cpp index 23e9e93455..1909600fa7 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" @@ -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 @@ -327,7 +332,8 @@ int wxEventLoop::Run() // there is none yet. OTOH, wxCATCH_ALL isn't // expanded unless wxUSE_EXCEPTIONS, so its // safe to use throw here. - throw; + throw; + default: break; } )