From 24ba0ff2cb4ad90edb33f5116ffbc135b723aebc Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Fri, 14 Sep 2007 18:58:48 +0000 Subject: [PATCH] don't crash if conversion to MB string fails in wxLogStream::DoLogString() git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@48684 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- src/common/log.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/common/log.cpp b/src/common/log.cpp index cf52fe3a69..1e4db45ec6 100644 --- a/src/common/log.cpp +++ b/src/common/log.cpp @@ -597,7 +597,7 @@ void wxLogStream::DoLogString(const wxChar *szString, time_t WXUNUSED(t)) { wxString str; TimeStamp(&str); - (*m_ostr) << wxConvertWX2MB(str) << wxConvertWX2MB(szString) << wxSTD endl; + (*m_ostr) << wxSafeConvertWX2MB(str) << wxSafeConvertWX2MB(szString) << wxSTD endl; } #endif // wxUSE_STD_IOSTREAM