By initializing the desktop window proc virtual rect cache.
From: Rémi Bernon rbernon@codeweavers.com
By initializing the desktop window proc virtual rect cache.
Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=56841 --- dlls/win32u/defwnd.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/dlls/win32u/defwnd.c b/dlls/win32u/defwnd.c index f549f922fd7..003ba7c0846 100644 --- a/dlls/win32u/defwnd.c +++ b/dlls/win32u/defwnd.c @@ -2977,7 +2977,7 @@ LRESULT desktop_window_proc( HWND hwnd, UINT msg, WPARAM wparam, LPARAM lparam ) return 0; case WM_DISPLAYCHANGE: { - static RECT virtual_rect; + static RECT virtual_rect = {INT_MIN,INT_MIN,INT_MAX,INT_MAX};
RECT new_rect = NtUserGetVirtualScreenRect(), old_rect = virtual_rect; UINT context, flags = 0;