X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/af58844636f51ca9c9350c66de3baf427d3e8646..d6a658ff0cd928953efdaf1ea56ff04b9cf281c1:/src/common/msgout.cpp diff --git a/src/common/msgout.cpp b/src/common/msgout.cpp index 0e663c40fc..804bec9b47 100644 --- a/src/common/msgout.cpp +++ b/src/common/msgout.cpp @@ -144,9 +144,11 @@ void wxMessageOutputStderr::Output(const wxString& str) const wxWX2MBbuf buf = strWithLF.mb_str(); if ( buf ) - fprintf(stderr, "%s", (const char*) buf); + fprintf(m_fp, "%s", (const char*) buf); else // print at least something - fprintf(stderr, "%s", (const char*) strWithLF.ToAscii()); + fprintf(m_fp, "%s", (const char*) strWithLF.ToAscii()); + + fflush(m_fp); } // ----------------------------------------------------------------------------