Module: wine Branch: master Commit: ad4f9d73fdfb89b8424b6727554f99a043b18263 URL: https://gitlab.winehq.org/wine/wine/-/commit/ad4f9d73fdfb89b8424b6727554f99a...
Author: Rémi Bernon rbernon@codeweavers.com Date: Thu May 2 11:36:04 2024 +0200
win32u: Fix list corruption in vulkan_detach_surfaces.
---
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 );