qt5base-lts/src/plugins
Jøger Hansegård 55141c59cd Remove ambiguity in handling of registry keys from setupAPI.h
QWindowsScreen uses setupAPI.h's SetupDiOpenDevRegKey function to read
EDID data for monitors. This function is documented as returning
INVALID_HANDLE_VALUE in case of failure.

The QWindowsScreen code was ambiguous in the sense that it considered
both nullptr and INVALID_HANDLE_VALUE as being invalid handle values.
This inconsistency is likely not a bug, but makes the code harder to
understand.

This patch removes this ambiguity, and QWindowsScreen now follows the
documented behavior when SetupDiOpenDevRegKey fails. In addition, we
replace use of unique_ptr with the new QUniqueHandle template class
because HKEY is a handle type, not a regular pointer type.

Pick-to: 6.5 6.6
Change-Id: Ia863bda504077e59833f6f7a0f855e7915e4edd9
Reviewed-by: Tor Arne Vestbø <tor.arne.vestbo@qt.io>
2023-11-17 23:29:00 +01:00
..
doc/snippets/code Use SPDX license identifiers 2022-05-16 16:37:38 +02:00
generic Rid of 'special case' markers 2023-04-13 18:30:58 +02:00
imageformats Fix transparency in 16 bit and 24 bit ico files 2023-07-11 18:35:41 +00:00
networkinformation QNetworkInfo[win]: Advertise Metered feature 2023-11-06 18:23:19 +01:00
platforminputcontexts IBus: fix missing Q_SLOTS 2023-04-05 01:27:47 +04:00
platforms Remove ambiguity in handling of registry keys from setupAPI.h 2023-11-17 23:29:00 +01:00
platformthemes QGtk3Theme: define light, midlight, mid, dark and shadow colors 2023-10-19 20:21:51 +02:00
printsupport Fix build with -no-feature-lineedit 2023-03-04 09:45:21 +00:00
sqldrivers Fix datatype mappings for the Mimer SQL QtSql plugin 2023-10-25 23:01:56 +02:00
styles Fix visible state of QRadioButton in Windows11 style with animations off 2023-11-17 22:32:24 +01:00
tls qopenssl: fix accidental pessimization 2023-11-15 18:25:04 +01:00
tracing Fix CTF with Integrity 2023-10-30 18:59:21 +03:00
CMakeLists.txt Fix CTF with static build 2023-10-30 18:59:21 +03:00