]> git.saurik.com Git - wxWidgets.git/commitdiff
Initialize PM subsystem in every thread, to enable sending messages to the GUI.
authorStefan Neis <Stefan.Neis@t-online.de>
Sun, 7 Sep 2003 12:49:04 +0000 (12:49 +0000)
committerStefan Neis <Stefan.Neis@t-online.de>
Sun, 7 Sep 2003 12:49:04 +0000 (12:49 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@23420 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

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();