Initialize PM subsystem in every thread, to enable sending messages to the GUI.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@23420 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Stefan Neis 2003-09-07 12:49:04 +00:00
parent 2e896473d8
commit ad0500fb78

View File

@ -409,7 +409,10 @@ void wxThreadInternal::OS2ThreadStart(
} }
else // do run thread else // do run thread
{ {
HAB vHab;
vHab = ::WinInitialize(0);
dwRet = (DWORD)pThread->Entry(); dwRet = (DWORD)pThread->Entry();
::WinTerminate(vHab);
// enter m_critsect before changing the thread state // enter m_critsect before changing the thread state
pThread->m_critsect.Enter(); pThread->m_critsect.Enter();