Details
-
Bug
-
Resolution: Invalid
-
Not Evaluated
-
5.1.1
-
None
-
Windows 7 64bit
-
728f3e7383ac6f7364126bf55684d51dec51cd69
Description
QIODevice::waitForReadyRead() specifies that the function should not timeout when the timeout argument is -1. However, QSerialPort::waitForReadyRead does timeout. From a quick look in qserialport_win.cpp it seems that the conversion of the timeout argument to WaitForMultipleObjects (line 956) is not done correctly. It should be
msecs == -1 ? INFINITE : msecs instead of qMax(msecs, 0)