X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/7da60d7c18d4b7a9ed586208cc6174b87b55db91..2d17efa94e68c37fb415cf530daa558692ab7c2d:/src/msw/thread.cpp?ds=sidebyside 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); }