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
This commit is contained in:
Vadim Zeitlin
2002-08-21 19:44:47 +00:00
parent 79bbbd1bc3
commit b767f77178

View File

@@ -127,17 +127,17 @@ void wxProcess::SetPipeStreams(wxInputStream *inputSstream,
bool wxProcess::IsInputOpened() const bool wxProcess::IsInputOpened() const
{ {
return TRUE; return m_inputStream != NULL;
} }
bool wxProcess::IsInputAvailable() const bool wxProcess::IsInputAvailable() const
{ {
return FALSE; return m_inputStream && !m_inputStream->Eof();
} }
bool wxProcess::IsErrorAvailable() const bool wxProcess::IsErrorAvailable() const
{ {
return FALSE; return m_errorStream && !m_errorStream->Eof();
} }
#endif // !Win32 && !Unix #endif // !Win32 && !Unix