Commit 4db3769e authored by Robert Shearman's avatar Robert Shearman Committed by Alexandre Julliard

GetDesktopWindow can now potentially create a thread, so we shouldn't

call this function from DllMain otherwise it is possible to cause a deadlock.
parent ebf7a5d4
......@@ -204,7 +204,7 @@ static void thread_detach(void)
WDML_NotifyThreadDetach();
WIN_DestroyThreadWindows( GetDesktopWindow() );
WIN_DestroyThreadWindows( get_user_thread_info()->desktop );
CloseHandle( get_user_thread_info()->server_queue );
exiting_thread_id = 0;
......
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