summaryrefslogtreecommitdiffstats
path: root/src/corelib/io/qprocess.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/corelib/io/qprocess.cpp')
-rw-r--r--src/corelib/io/qprocess.cpp8
1 files changed, 5 insertions, 3 deletions
diff --git a/src/corelib/io/qprocess.cpp b/src/corelib/io/qprocess.cpp
index 0702667042d..0f2de9e1ff7 100644
--- a/src/corelib/io/qprocess.cpp
+++ b/src/corelib/io/qprocess.cpp
@@ -782,7 +782,9 @@ void QProcessPrivate::Channel::clear()
QProcessPrivate::QProcessPrivate()
{
readBufferChunkSize = QRINGBUFFER_CHUNKSIZE;
+#ifndef Q_OS_WIN
writeBufferChunkSize = QRINGBUFFER_CHUNKSIZE;
+#endif
}
/*!
@@ -1585,11 +1587,11 @@ bool QProcess::isSequential() const
*/
qint64 QProcess::bytesToWrite() const
{
- qint64 size = QIODevice::bytesToWrite();
#ifdef Q_OS_WIN
- size += d_func()->pipeWriterBytesToWrite();
+ return d_func()->pipeWriterBytesToWrite();
+#else
+ return QIODevice::bytesToWrite();
#endif
- return size;
}
/*!