28 May
2024
28 May
'24
8:45 p.m.
Jacek Caban (@jacek) commented about dlls/win32u/vulkan.c:
+ } +} + +void vulkan_thread_detach(void) +{ + HANDLE handle = 0; + WND *win; + + user_lock(); + while ((win = next_process_user_handle_ptr( &handle, NTUSER_OBJ_WINDOW ))) + { + if (win->tid != GetCurrentThreadId()) continue; + vulkan_window_detach( win ); + } + user_unlock(); +} Could we do that in `destroy_thread_windows`, where we already iterate windows? The downside of it would be that we'd call the driver after `ThreadDetach`, which is not great, but it should work AFAICT.
-- https://gitlab.winehq.org/wine/wine/-/merge_requests/5491#note_67760