https://bugs.winehq.org/show_bug.cgi?id=55074
Tatsuyuki Ishi ishitatsuyuki@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |ishitatsuyuki@gmail.com
--- Comment #4 from Tatsuyuki Ishi ishitatsuyuki@gmail.com --- The following patch should fix a segfault on Unix side, but sometimes there still seem to be a case where the window is positioned at top left and hardware acceleration is disabled. I'll see if I can root cause that one.
diff --git a/dlls/win32u/sysparams.c b/dlls/win32u/sysparams.c index 4f69cac7040..7498203bf53 100644 --- a/dlls/win32u/sysparams.c +++ b/dlls/win32u/sysparams.c @@ -2335,6 +2339,9 @@ LONG WINAPI NtUserQueryDisplayConfig( UINT32 flags, UINT32 *paths_count, DISPLAY if (!(monitor->dev.state_flags & DISPLAY_DEVICE_ACTIVE)) continue;
+ if (!monitor->adapter) + continue; + adapter_index = monitor->adapter->id; gpu_luid = &monitor->adapter->gpu_luid; output_id = monitor->output_id;