26 Feb
2024
26 Feb
'24
11:17 a.m.
Zhiyi Zhang (@zhiyi) commented about dlls/win32u/sysparams.c:
ctx->adapter_key = NULL; }
- adapter_name = ctx->gpu_adapter_count++; + ctx->gpu_adapter_count++; adapter_index = ctx->adapter_count++; ctx->monitor_count = 0; ctx->mode_count = 0;
- snprintf( buffer, ARRAY_SIZE(buffer), "\\Registry\\Machine\\System\\CurrentControlSet\\Control\\Video\\%s\\%04x", - ctx->gpu_guid, adapter_name ); + snprintf( buffer, ARRAY_SIZE(buffer), "\\Registry\\Machine\\System\\CurrentControlSet\\Control\\Video\\%s\\%s", + ctx->gpu_guid, adapter->name );
This is wrong. The name should be a 4-digit string as it's on Windows. -- https://gitlab.winehq.org/wine/wine/-/merge_requests/5137#note_62634