summaryrefslogtreecommitdiffstats
path: root/src/corelib/thread/qfutureinterface.cpp
diff options
context:
space:
mode:
authorOliver Wolff <oliver.wolff@qt.io>2021-03-03 12:22:10 +0100
committerOliver Wolff <oliver.wolff@qt.io>2021-03-22 09:40:29 +0100
commit5910adae744182113f4a9117b5c858c77504c052 (patch)
treeaaa4cbdba7e97c40099d6c1ec41598d87342f925 /src/corelib/thread/qfutureinterface.cpp
parentdf121fd7f74ecfb3de20867edea1c1f3ebf035c2 (diff)
QWinRTFunctions::await: Return proper error in case of timeout
The await function is still used in other Qt modules which depend on UWP API (like Qt Bluetooth). ERROR_TIMEOUT is a win32 error not an HRESULT so that the check for FAILED(ERROR_TIMEOUT) in "static inline HRESULT await" will not work as expected if we do not use HRESULT_FROM_WIN32. The await function will fail in asyncOp->GetResults but the error message will not be related to a timeout but about a function being called at an unexpected time. Change-Id: Iac46b27f379f80769913d544e32320c77b799b4f Reviewed-by: Miguel Costa <miguel.costa@qt.io> Reviewed-by: Alex Blasche <alexander.blasche@qt.io> Reviewed-by: Maurice Kalinowski <maurice.kalinowski@qt.io>
Diffstat (limited to 'src/corelib/thread/qfutureinterface.cpp')
0 files changed, 0 insertions, 0 deletions