fixed bug in wxThread::Wait() in console applications introduced in 2.8.3 (bug 1690777)

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@45114 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Vadim Zeitlin
2007-03-29 17:28:21 +00:00
parent 38f9c9355c
commit 1059208429
2 changed files with 2 additions and 1 deletions

View File

@@ -98,6 +98,7 @@ wxMSW:
- Don't lose combobox text when it's opened and closed (Kolya Kosenko)
- Corrected GetChecked() for events from checkable menu items (smanders)
- Fixed popup menus under Windows NT 4
- Fixed bug in wxThread::Wait() in console applications introduced in 2.8.3
wxGTK:

View File

@@ -771,7 +771,7 @@ wxThreadInternal::WaitForTerminate(wxCriticalSection& cs,
// loop to process them as otherwise we'd enter an infinite loop
// with MsgWaitForMultipleObjects() always returning WAIT_OBJECT_0
// + 1 because the message would remain forever in the queue
result = ::WaitForSingleObject(&m_hThread, INFINITE);
result = ::WaitForSingleObject(m_hThread, INFINITE);
}
else // wait for thread termination without blocking the GUI
{