]> git.saurik.com Git - wxWidgets.git/blobdiff - src/msw/evtloop.cpp
oops, more fixes needed
[wxWidgets.git] / src / msw / evtloop.cpp
index 23e9e93455b7145a82035ddc6e90bf647f62ac82..1909600fa739eaeef56c7a2b9e66c849de3abf3c 100644 (file)
 
 #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;
     }
         )