]> git.saurik.com Git - wxWidgets.git/commitdiff
better dummy implementation of IsInput/ErrorAvailable() (it's still wrong but now...
authorVadim Zeitlin <vadim@wxwidgets.org>
Wed, 21 Aug 2002 19:44:47 +0000 (19:44 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Wed, 21 Aug 2002 19:44:47 +0000 (19:44 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@16658 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/common/process.cpp

index c8f7cae09aa7b290d03ebd94325c95627bd2d4da..0e9769d95e62a78a350953cf83a6a9fbeb9bfb45 100644 (file)
@@ -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