[PATCH 0/1] MR9747: win32u: Avoid setting surface layered with the dummy surface.
From: Rémi Bernon <rbernon@codeweavers.com> Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=58914 --- dlls/win32u/window.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dlls/win32u/window.c b/dlls/win32u/window.c index c0e33b72fa7..7451ff4f6e9 100644 --- a/dlls/win32u/window.c +++ b/dlls/win32u/window.c @@ -2117,7 +2117,7 @@ static struct window_surface *get_window_surface( HWND hwnd, UINT swp_flags, BOO window_surface_add_ref( (new_surface = &dummy_surface) ); } - if (new_surface && !is_layered) + if (new_surface && new_surface != &dummy_surface && !is_layered) { DWORD lwa_flags = 0, alpha_bits = -1; COLORREF key; -- GitLab https://gitlab.winehq.org/wine/wine/-/merge_requests/9747
participants (2)
-
Rémi Bernon -
Rémi Bernon (@rbernon)