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

call this function from DllMain otherwise it is possible to cause a
deadlock.
This commit is contained in:
Robert Shearman 2005-09-17 14:28:44 +00:00 committed by Alexandre Julliard
parent ebf7a5d408
commit 4db3769e70

View file

@ -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;