[PATCH 2/2] winex11: Add ProviderName registry property to display adapters.
Myah Caron
qsniyg at protonmail.com
Wed Oct 14 16:43:40 CDT 2020
Signed-off-by: Myah Caron <qsniyg at protonmail.com>
---
dlls/winex11.drv/display.c | 6 ++++++
1 file changed, 6 insertions(+)
diff --git a/dlls/winex11.drv/display.c b/dlls/winex11.drv/display.c
index cedf18fe4f8..82fc80446cd 100644
--- a/dlls/winex11.drv/display.c
+++ b/dlls/winex11.drv/display.c
@@ -54,6 +54,7 @@ static const WCHAR driver_date_dataW[] = {'D','r','i','v','e','r','D','a','t','e
static const WCHAR driver_dateW[] = {'D','r','i','v','e','r','D','a','t','e',0};
static const WCHAR driver_descW[] = {'D','r','i','v','e','r','D','e','s','c',0};
static const WCHAR driver_versionW[] = {'D','r','i','v','e','r','V','e','r','s','i','o','n',0};
+static const WCHAR provider_nameW[] = {'P','r','o','v','i','d','e','r','N','a','m','e',0};
static const WCHAR displayW[] = {'D','I','S','P','L','A','Y',0};
static const WCHAR pciW[] = {'P','C','I',0};
static const WCHAR video_idW[] = {'V','i','d','e','o','I','D',0};
@@ -111,6 +112,7 @@ static const WCHAR monitor_hardware_idW[] = {
'D','e','f','a','u','l','t','_','M','o','n','i','t','o','r',0,0};
static const WCHAR driver_date_fmtW[] = {'%','u','-','%','u','-','%','u',0};
static const WCHAR driver_version_valueW[] = {'1','.','0','.','0','.','1','0','0','0',0};
+static const WCHAR provider_name_valueW[] = {'T','h','e',' ','W','i','n','e',' ','P','r','o','j','e','c','t',0};
static struct x11drv_display_device_handler host_handler;
struct x11drv_display_device_handler desktop_handler;
@@ -489,6 +491,10 @@ static BOOL X11DRV_InitGpu(HDEVINFO devinfo, const struct x11drv_gpu *gpu, INT g
(strlenW(driver_version_valueW) + 1) * sizeof(WCHAR)))
goto done;
+ if (RegSetValueExW(hkey, provider_nameW, 0, REG_SZ, (BYTE *)provider_name_valueW,
+ (strlenW(provider_name_valueW) + 1) * sizeof(WCHAR)))
+ goto done;
+
RegCloseKey(hkey);
/* Retrieve driver value for adapters */
--
2.28.0
More information about the wine-devel
mailing list