Correct fix to the compile time assert under OW. Kudos to Vadim to the tip.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@30030 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Włodzimierz Skiba
2004-10-20 01:20:58 +00:00
parent 8e5d510855
commit 1c6f24145e
6 changed files with 67 additions and 61 deletions

View 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);
}