[PATCH 0/1] MR7016: winex11.drv: Use NtUserReleaseDC() with hdc in X11DRV_vulkan_surface_presented().
From: Paul Gofman <pgofman(a)codeweavers.com> --- dlls/winex11.drv/vulkan.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dlls/winex11.drv/vulkan.c b/dlls/winex11.drv/vulkan.c index 12f51fdcefd..855dddba440 100644 --- a/dlls/winex11.drv/vulkan.c +++ b/dlls/winex11.drv/vulkan.c @@ -246,7 +246,7 @@ static void X11DRV_vulkan_surface_presented( HWND hwnd, void *private, VkResult surface->hdc_src, 0, 0, surface->rect.right, surface->rect.bottom, SRCCOPY, 0 ); if (region) NtGdiDeleteObjectApp( region ); - if (hdc) NtGdiDeleteObjectApp( hdc ); + if (hdc) NtUserReleaseDC( hwnd, hdc ); } static VkBool32 X11DRV_vkGetPhysicalDeviceWin32PresentationSupportKHR(VkPhysicalDevice phys_dev, -- GitLab https://gitlab.winehq.org/wine/wine/-/merge_requests/7016
Ah, thanks I also made the same mistake in `needs_client_window_clipping`, would you mind changing it too? -- https://gitlab.winehq.org/wine/wine/-/merge_requests/7016#note_90458
participants (3)
-
Paul Gofman -
Paul Gofman (@gofman) -
Rémi Bernon