diff options
author | Mårten Nordheim <marten.nordheim@qt.io> | 2022-11-03 13:40:18 +0100 |
---|---|---|
committer | Mårten Nordheim <marten.nordheim@qt.io> | 2022-11-04 11:54:31 +0100 |
commit | 35e54f9b7bba9ad7b1757e0b8f7d03859a694b34 (patch) | |
tree | 926e90c9c3ae36517ce2095f0337ffaa3e325295 /src/widgets/kernel | |
parent | 7000e2dd5c594dfbb9f67a9accfff14880ab537f (diff) |
QNetworkInformation[Win]: Catch potential exceptions
Some Windows SDKs seem to throw an exception (sometimes?) when
calling ConnectionProfile::NetworkAdapter.
Catch the exception and ignore it, we would return Unknown anyway.
And just in case it is needed, do the same for GetConnectionCost.
This requires enabling exceptions for the plugin.
Fixes: QTBUG-108156
Pick-to: 6.4 6.4.1
Change-Id: Ie6c5adb3715578aa94ef3391afae79d9aecdc5d3
Reviewed-by: Oliver Wolff <oliver.wolff@qt.io>
Diffstat (limited to 'src/widgets/kernel')
0 files changed, 0 insertions, 0 deletions