]> git.saurik.com Git - wxWidgets.git/blobdiff - src/os2/thread.cpp
undid accidental change to assert in Start() during last commit
[wxWidgets.git] / src / os2 / thread.cpp
index c20cdf3b1f9bfdd82f1ad19072901d33c036a44e..5c73b1a6ce9a898ebf685a9e679c77973c6f436b 100644 (file)
@@ -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();