X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/1420518999cdfc3365d1986003d63c18dc6ae872..9a26db9ed22b5eed62201186f69fcb7e63e2633d:/src/msw/thread.cpp diff --git a/src/msw/thread.cpp b/src/msw/thread.cpp index 0f5886b86f..d93d017704 100644 --- a/src/msw/thread.cpp +++ b/src/msw/thread.cpp @@ -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" @@ -132,7 +133,7 @@ static bool gs_waitingForThread = FALSE; wxCriticalSection::wxCriticalSection() { - wxCOMPILE_TIME_ASSERT( sizeof(CRITICAL_SECTION) <= sizeof(m_buffer), + wxCOMPILE_TIME_ASSERT( sizeof(CRITICAL_SECTION) <= sizeof(wxCritSectBuffer), wxCriticalSectionBufferTooSmall ); ::InitializeCriticalSection((CRITICAL_SECTION *)m_buffer); @@ -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() )