diff options
author | Denis Shienkov <denis.shienkov@gmail.com> | 2014-05-29 17:13:12 +0400 |
---|---|---|
committer | The Qt Project <gerrit-noreply@qt-project.org> | 2014-06-02 09:59:21 +0200 |
commit | 91f818d6f7589553b45d680034445e3775191f2d (patch) | |
tree | aa0eb4b9ba7ee36eefd216c58b88f73b86e2e62f /tests | |
parent | 76e3365e3b0bc11a4766b4154fe46ad3dcf91251 (diff) | |
download | qtserialport-91f818d6f7589553b45d680034445e3775191f2d.tar.gz |
Fix the error message for TimeoutError on Windows
At timeouts from the waitForX() methods are set a wrong
error string. Thing in that the WAIT_TIMEOUT constant is
not a system error, therefore call of GetLastError()
returns a code of a system error which was set by someone
earlier.
Thus, it is necessary to extract text representation of
an error directly from the WAIT_TIMEOUT constant without
relying on GetLastError().
Tested on Windows 7/8 using Qt4 and then Qt5.
Change-Id: Id7fdc71c1b64c39eed658148bb1b66ac8806f119
Reviewed-by: Sergey Belyashov <Sergey.Belyashov@gmail.com>
Reviewed-by: Dyami Caliri <dyami@dragonframe.com>
Reviewed-by: Denis Shienkov <denis.shienkov@gmail.com>
Diffstat (limited to 'tests')
0 files changed, 0 insertions, 0 deletions