From: Vadim Zeitlin Date: Sat, 29 Jan 2005 20:49:14 +0000 (+0000) Subject: don't run the thread if its creation failed X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/5ac52b5da0dcfc60b8e7a641c89153ae0e4eeeee?ds=inline don't run the thread if its creation failed git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@31643 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/samples/thread/thread.cpp b/samples/thread/thread.cpp index d239920382..6772a0bbec 100644 --- a/samples/thread/thread.cpp +++ b/samples/thread/thread.cpp @@ -726,6 +726,7 @@ void MyFrame::OnStartWorker(wxCommandEvent& WXUNUSED(event)) if ( thread->Create() != wxTHREAD_NO_ERROR ) { wxLogError(wxT("Can't create thread!")); + return; } m_dlgProgress = new wxProgressDialog