Commit ad4f9d73 authored by Rémi Bernon's avatar Rémi Bernon Committed by Alexandre Julliard

win32u: Fix list corruption in vulkan_detach_surfaces.

parent efce3600
...@@ -258,9 +258,9 @@ static void vulkan_init(void) ...@@ -258,9 +258,9 @@ static void vulkan_init(void)
void vulkan_detach_surfaces( struct list *surfaces ) 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 ); driver_funcs->p_vulkan_surface_detach( surface->hwnd, surface->driver_private );
list_remove( &surface->entry ); list_remove( &surface->entry );
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment