]> git.saurik.com Git - wxWidgets.git/blobdiff - src/msw/thread.cpp
a better fix for notebook page not being refreshed after Delete()
[wxWidgets.git] / src / msw / thread.cpp
index e839cba462fd5852529f22c00c6afdfda2e83ffe..d93d017704c2d27c7abe938b44eee16dd8d89bc1 100644 (file)
@@ -32,6 +32,7 @@
 #if wxUSE_THREADS
 
 #include "wx/msw/private.h"
+#include "wx/msw/missing.h"
 
 #include "wx/module.h"
 #include "wx/thread.h"
@@ -985,7 +986,7 @@ wxThreadError wxThread::Delete(ExitCode *pRc)
         // we can't just wait for the thread to terminate because it might be
         // calling some GUI functions and so it will never terminate before we
         // process the Windows messages that result from these functions
-        DWORD result;
+        DWORD result = 0;       // suppress warnings from broken compilers
         do
         {
             if ( IsMain() )