Rémi Bernon (@rbernon) commented about dlls/win32u/sysparams.c:
- } - else if ((adapter = find_adapter( device ))) - { - /* Enumerate monitors */ - LIST_FOR_EACH_ENTRY(monitor, &monitors, struct monitor, entry) - { - if (monitor->adapter == adapter && index == monitor->id) - { - found = &monitor->dev; - break; - } - } - adapter_release( adapter ); - } + if (!device || !device->Length) found = find_adapter_device_by_id( index ); + else found = find_monitor_device( find_adapter_device_by_name( device ), index ); I'll wait to see if there's more changes to do but I'll change this to avoid passing `NULL` adapter device to `find_monitor_device`.
-- https://gitlab.winehq.org/wine/wine/-/merge_requests/844#note_8409