From: Vadim Zeitlin Date: Wed, 21 Aug 2002 19:44:47 +0000 (+0000) Subject: better dummy implementation of IsInput/ErrorAvailable() (it's still wrong but now... X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/b767f7717866d5753a3b8d947534733083d9027f better dummy implementation of IsInput/ErrorAvailable() (it's still wrong but now no more wrong than before my changes) git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@16658 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/src/common/process.cpp b/src/common/process.cpp index c8f7cae09a..0e9769d95e 100644 --- a/src/common/process.cpp +++ b/src/common/process.cpp @@ -127,17 +127,17 @@ void wxProcess::SetPipeStreams(wxInputStream *inputSstream, bool wxProcess::IsInputOpened() const { - return TRUE; + return m_inputStream != NULL; } bool wxProcess::IsInputAvailable() const { - return FALSE; + return m_inputStream && !m_inputStream->Eof(); } bool wxProcess::IsErrorAvailable() const { - return FALSE; + return m_errorStream && !m_errorStream->Eof(); } #endif // !Win32 && !Unix