]> git.saurik.com Git - wxWidgets.git/blobdiff - src/msw/thread.cpp
fix for [ 1052989 ] TextCtrl.SetBackgroundColour(wx.NullColour) bug
[wxWidgets.git] / src / msw / thread.cpp
index 54279fb6b4c1e97f4dd1ab93b82e7d57d8f4e5e1..0a1d611ca4c8ecc48d0ba8e3b17afc0888fa180f 100644 (file)
@@ -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);
 }