X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/f877815e1b36c9b059b0d1025db4df4845e2a57d..caa36aab8425422041c34b9cc573a2e0189db6ed:/src/os2/thread.cpp diff --git a/src/os2/thread.cpp b/src/os2/thread.cpp index c20cdf3b1f..5c73b1a6ce 100644 --- a/src/os2/thread.cpp +++ b/src/os2/thread.cpp @@ -409,7 +409,10 @@ void wxThreadInternal::OS2ThreadStart( } else // do run thread { + HAB vHab; + vHab = ::WinInitialize(0); dwRet = (DWORD)pThread->Entry(); + ::WinTerminate(vHab); // enter m_critsect before changing the thread state pThread->m_critsect.Enter();