Zhiyi Zhang : winex11.drv: Register GUID_DEVINTERFACE_MONITOR interface for monitors.
Alexandre Julliard
julliard at winehq.org
Thu Sep 16 15:34:31 CDT 2021
Module: wine
Branch: master
Commit: 12411935c8be35a32583814899a47971d5f0f3f7
URL: https://source.winehq.org/git/wine.git/?a=commit;h=12411935c8be35a32583814899a47971d5f0f3f7
Author: Zhiyi Zhang <zzhang at codeweavers.com>
Date: Thu Sep 16 15:10:35 2021 +0800
winex11.drv: Register GUID_DEVINTERFACE_MONITOR interface for monitors.
Signed-off-by: Zhiyi Zhang <zzhang at codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>
---
dlls/winex11.drv/display.c | 7 +++++++
1 file changed, 7 insertions(+)
diff --git a/dlls/winex11.drv/display.c b/dlls/winex11.drv/display.c
index 19c5d95a562..c8c216c8302 100644
--- a/dlls/winex11.drv/display.c
+++ b/dlls/winex11.drv/display.c
@@ -665,6 +665,13 @@ static BOOL X11DRV_InitMonitor(HDEVINFO devinfo, const struct x11drv_monitor *mo
if (!SetupDiRegisterDeviceInfo(devinfo, &device_data, 0, NULL, NULL, NULL))
goto done;
+ /* Register GUID_DEVINTERFACE_MONITOR */
+ if (!SetupDiCreateDeviceInterfaceW(devinfo, &device_data, &GUID_DEVINTERFACE_MONITOR, NULL, 0, NULL))
+ goto done;
+
+ if (!link_device(bufferW, &GUID_DEVINTERFACE_MONITOR))
+ goto done;
+
/* Write HardwareID registry property */
if (!SetupDiSetDeviceRegistryPropertyW(devinfo, &device_data, SPDRP_HARDWAREID,
(const BYTE *)monitor_hardware_idW, sizeof(monitor_hardware_idW)))
More information about the wine-cvs
mailing list