diff --git a/src/plugins/platforms/windows/qwindowsscreen.cpp b/src/plugins/platforms/windows/qwindowsscreen.cpp index 74642be3398..2165c56d3c9 100644 --- a/src/plugins/platforms/windows/qwindowsscreen.cpp +++ b/src/plugins/platforms/windows/qwindowsscreen.cpp @@ -139,7 +139,7 @@ struct DevInfoHandleTraits { return reinterpret_cast(INVALID_HANDLE_VALUE); } - static bool close(Type handle) { return SetupDiDestroyDeviceInfoList(handle) == ERROR_SUCCESS; } + static bool close(Type handle) { return SetupDiDestroyDeviceInfoList(handle) == TRUE; } }; using DevInfoHandle = QUniqueHandle;