Destroy thread windows also on process exit

Dmitry Timoshkov dmitry at baikal.ru
Mon May 3 00:37:43 CDT 2004


Hello,

Currently user32 doesn't destroy windows on exit of a single-threaded
process since it doesn't receive DLL_THREAD_DETACH notification.

Changelog:
    Dmitry Timoshkov <dmitry at codeweavers.com>
    Destroy thread windows also on process exit, this allows
    a correct clean up for single-threaded applications.

--- cvs/hq/wine/dlls/user/user_main.c	2004-04-23 16:07:38.000000000 +0900
+++ wine/dlls/user/user_main.c	2004-05-03 14:26:54.000000000 +0900
@@ -241,6 +241,8 @@ BOOL WINAPI DllMain( HINSTANCE inst, DWO
         user32_module = inst;
         ret = process_attach();
         break;
+
+    case DLL_PROCESS_DETACH:
     case DLL_THREAD_DETACH:
         thread_detach();
         break;






More information about the wine-patches mailing list