Module: wine Branch: master Commit: 9abb0b6245432ee11089b9599c83060915f53847 URL: https://gitlab.winehq.org/wine/wine/-/commit/9abb0b6245432ee11089b9599c83060...
Author: Rémi Bernon rbernon@codeweavers.com Date: Thu Apr 25 10:50:16 2024 +0200
win32u: Destroy thread windows before calling driver ThreadDetach.
---
dlls/win32u/sysparams.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/dlls/win32u/sysparams.c b/dlls/win32u/sysparams.c index 26bddad7b59..d2ac6d5bfb2 100644 --- a/dlls/win32u/sysparams.c +++ b/dlls/win32u/sysparams.c @@ -6201,13 +6201,13 @@ static void thread_detach(void) { struct user_thread_info *thread_info = get_user_thread_info();
+ destroy_thread_windows(); user_driver->pThreadDetach();
free( thread_info->key_state ); thread_info->key_state = 0; free( thread_info->rawinput );
- destroy_thread_windows(); cleanup_imm_thread(); NtClose( thread_info->server_queue );