From: Paul Gofman <pgofman@codeweavers.com> --- dlls/win32u/sysparams.c | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/dlls/win32u/sysparams.c b/dlls/win32u/sysparams.c index b8bde1a9bd6..5bf8ce3a7ea 100644 --- a/dlls/win32u/sysparams.c +++ b/dlls/win32u/sysparams.c @@ -1642,10 +1642,14 @@ static BOOL write_gpu_to_registry( const struct gpu *gpu, const struct pci_id *p set_reg_value( hkey, bufferW, REG_SZ, gpu->name, name_size ); if (pci->vendor && pci->device) { + DWORD val; + asciiz_to_unicode( bufferW, "DeviceId" ); - set_reg_value( hkey, bufferW, REG_DWORD, &pci->device, sizeof(pci->device) ); + val = pci->device; + set_reg_value( hkey, bufferW, REG_DWORD, &val, sizeof(val) ); asciiz_to_unicode( bufferW, "VendorId" ); - set_reg_value( hkey, bufferW, REG_DWORD, &pci->vendor, sizeof(pci->vendor) ); + val = pci->vendor; + set_reg_value( hkey, bufferW, REG_DWORD, &val, sizeof(val) ); } NtClose( hkey ); } -- GitLab https://gitlab.winehq.org/wine/wine/-/merge_requests/10280