From: Rémi Bernon <rbernon(a)codeweavers.com>
---
dlls/win32u/vulkan.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/dlls/win32u/vulkan.c b/dlls/win32u/vulkan.c
index 4fae491b1db..59b9364065e 100644
--- a/dlls/win32u/vulkan.c
+++ b/dlls/win32u/vulkan.c
@@ -258,9 +258,9 @@ static void vulkan_init(void)
void vulkan_detach_surfaces( struct list *surfaces )
{
- struct surface *surface;
+ struct surface *surface, *next;
- LIST_FOR_EACH_ENTRY( surface, surfaces, struct surface, entry )
+ LIST_FOR_EACH_ENTRY_SAFE( surface, next, surfaces, struct surface, entry )
{
driver_funcs->p_vulkan_surface_detach( surface->hwnd,
surface->driver_private );
list_remove( &surface->entry );
--
GitLab
https://gitlab.winehq.org/wine/wine/-/merge_requests/5569