X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/7da60d7c18d4b7a9ed586208cc6174b87b55db91..cb0791531fff2f3673e28d68be67a0ee5398a036:/src/msw/thread.cpp diff --git a/src/msw/thread.cpp b/src/msw/thread.cpp index 54279fb6b4..0a1d611ca4 100644 --- a/src/msw/thread.cpp +++ b/src/msw/thread.cpp @@ -144,6 +144,9 @@ static bool gs_waitingForThread = false; wxCriticalSection::wxCriticalSection() { + wxCOMPILE_TIME_ASSERT( sizeof(CRITICAL_SECTION) <= sizeof(wxCritSectBuffer), + wxCriticalSectionBufferTooSmall ); + ::InitializeCriticalSection((CRITICAL_SECTION *)m_buffer); }