Some applications (e.g. UE4) requires the DriverVersion string in the registry. The string is taken from `dlls/wbemprox/builtin.c`
From: Michael Skorokhodov mykhailo.skorokhodov@globallogic.com
Some applications (e.g. UE4) requires the DriverVersion string in the registry. The string is taken from dlls/wbemprox/builtin.c.
Signed-off-by: Mykhailo Skorokhodov mykhailo.skorokhodov@globallogic.com --- dlls/win32u/sysparams.c | 6 ++++++ 1 file changed, 6 insertions(+)
diff --git a/dlls/win32u/sysparams.c b/dlls/win32u/sysparams.c index 99042c85923..6afa76d1cfc 100644 --- a/dlls/win32u/sysparams.c +++ b/dlls/win32u/sysparams.c @@ -1221,6 +1221,10 @@ static void add_gpu( const struct gdi_gpu *gpu, void *param ) static const WCHAR ramdacW[] = {'I','n','t','e','r','g','r','a','t','e','d',' ','R','A','M','D','A','C',0}; static const WCHAR driver_dateW[] = {'D','r','i','v','e','r','D','a','t','e',0}; + static const WCHAR driver_versionW[] = + {'D','r','i','v','e','r','V','e','r','s','i','o','n',0}; + static const WCHAR driver_version_stringW[] = + {'3','1','.','0','.','1','4','0','5','1','.','5','0','0','6',0};
TRACE( "%s %04X %04X %08X %02X\n", debugstr_w(gpu->name), gpu->vendor_id, gpu->device_id, gpu->subsys_id, gpu->revision_id ); @@ -1358,6 +1362,8 @@ static void add_gpu( const struct gdi_gpu *gpu, void *param )
set_reg_value( hkey, driver_date_dataW, REG_BINARY, &ft, sizeof(ft) );
+ set_reg_value( hkey, driver_versionW, REG_SZ, driver_version_stringW, sizeof(driver_version_stringW)); + size = (lstrlenW( desc ) + 1) * sizeof(WCHAR); set_reg_value( hkey, driver_descW, REG_SZ, desc, size ); set_reg_value( hkey, adapter_stringW, REG_BINARY, desc, size );