From: Aleksandr Kosachev <kosachev_alex@outlook.com> --- dlls/winevulkan/wsi.c | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/dlls/winevulkan/wsi.c b/dlls/winevulkan/wsi.c index 5bea1e6d1eb..cb8e07ea5c1 100644 --- a/dlls/winevulkan/wsi.c +++ b/dlls/winevulkan/wsi.c @@ -633,19 +633,19 @@ VkResult wine_vkCreateSwapchainKHR(VkDevice device, const VkSwapchainCreateInfoK drm_format = 0x30333252; /* DRM_FORMAT_ARGB2101010 */ toplevel_hwnd = NtUserGetAncestor(swapchain->surface->hwnd, GA_ROOT); - NtUserSetProp(swapchain->surface->hwnd, vulkan_drm_modifier_propW, (HANDLE)(swapchain->images[0].drm_modifier + 1)); + NtUserSetProp(swapchain->surface->hwnd, vulkan_drm_modifier_propW, (HANDLE)(ULONG_PTR)(swapchain->images[0].drm_modifier + 1)); NtUserSetProp(swapchain->surface->hwnd, vulkan_drm_format_propW, (HANDLE)(ULONG_PTR)drm_format); NtUserSetProp(swapchain->surface->hwnd, vulkan_swapchain_propW, (HANDLE)swapchain); if (toplevel_hwnd && toplevel_hwnd != swapchain->surface->hwnd) { - NtUserSetProp(toplevel_hwnd, vulkan_drm_modifier_propW, (HANDLE)(swapchain->images[0].drm_modifier + 1)); + NtUserSetProp(toplevel_hwnd, vulkan_drm_modifier_propW, (HANDLE)(ULONG_PTR)(swapchain->images[0].drm_modifier + 1)); NtUserSetProp(toplevel_hwnd, vulkan_drm_format_propW, (HANDLE)(ULONG_PTR)drm_format); } } vk_device->physical_device->instance->p_insert_object(vk_device->physical_device->instance, &swapchain->obj.obj); - *pSwapchain = (VkSwapchainKHR)&swapchain->obj; + *pSwapchain = (VkSwapchainKHR)(UINT_PTR)&swapchain->obj; free(modifiers); return VK_SUCCESS; @@ -752,8 +752,9 @@ VkResult wine_vkAcquireNextImageKHR(VkDevice device, VkSwapchainKHR swapchain_ha VkFence host_fence = VK_NULL_HANDLE; VkSubmitInfo submit; - TRACE("device %p, swapchain %s, timeout %s, semaphore %p, fence %p, pImageIndex %p\n", - device, wine_dbgstr_longlong(swapchain_handle), wine_dbgstr_longlong(timeout), (void *)semaphore, (void *)fence, pImageIndex); + TRACE("device %p, swapchain %s, timeout %s, semaphore %s, fence %s, pImageIndex %p\n", + device, wine_dbgstr_longlong(swapchain_handle), wine_dbgstr_longlong(timeout), + wine_dbgstr_longlong(semaphore), wine_dbgstr_longlong(fence), pImageIndex); /* Back-pressure: don't hand the image back until the queue finished the work * up to its previous present, so the app can't render over a frame the GPU -- GitLab https://gitlab.winehq.org/wine/wine/-/merge_requests/11256