fix error handling bug in QWindowsPipeReader
authorJoerg Bornemann <joerg.bornemann@digia.com>
Thu, 1 Nov 2012 11:14:09 +0000 (12:14 +0100)
committerThe Qt Project <gerrit-noreply@qt-project.org>
Fri, 2 Nov 2012 11:16:49 +0000 (12:16 +0100)
commitc6f3d919dd82497183bdf780b0d00aeb374aa934
tree760cb6183daa0f81a9c80af12b5dd218d1873c66
parent44e0d2b3287d3b4e5e9589f887e7d436402d02b4
fix error handling bug in QWindowsPipeReader

If ReadFile returns with an error then we must set our internal state
accordingly. QWindowsPipeReader::readSequenceStarted must be set to
false. If ReadFile fails, we're not within a read sequence.
Also, we must handle the ERROR_BROKEN_PIPE error.

Task-number: QTBUG-25342

Change-Id: Ic9247f170fa9cc47fa7e45d0f47ccfedac06a593
Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@digia.com>
src/corelib/io/qwindowspipereader.cpp
tests/auto/corelib/io/qprocess/test/test.pro