CVS: winex/scheduler process.c,1.58,1.59

[email protected] 31 Jul 2007 19:56:10 -0000
Newsgroups gmane.comp.emulators.winex.cvs
Message-ID <[email protected]>
Subject: winex/scheduler process.c,1.58,1.59Update of /var/lib/cvsd/cvsroot/winex/scheduler
In directory agravaine:/tmp/cvs-serv1796/scheduler

Modified Files:
	process.c 
Log Message:

- ExitProcess needs to kill threads prior to PROCESS_DETACH notifications
- fix wineserver on the Mac to actually be able to kill threads



Index: process.c
===================================================================
RCS file: /var/lib/cvsd/cvsroot/winex/scheduler/process.c,v
retrieving revision 1.58
retrieving revision 1.59
diff -u -d -r1.58 -r1.59
--- process.c	31 Jul 2007 19:42:27 -0000	1.58
+++ process.c	31 Jul 2007 19:56:08 -0000	1.59
@@ -1446,8 +1446,6 @@
  */
 void WINAPI ExitProcess( DWORD status )
 {
-    MODULE_DllProcessDetach( TRUE, (LPVOID)1 );
-
     SERVER_START_REQ( terminate_process )
     {
         /* send the exit code to the server */
@@ -1456,6 +1454,9 @@
         wine_server_call( req );
     }
     SERVER_END_REQ;
+
+    MODULE_DllProcessDetach( TRUE, (LPVOID)1 );
+
     /* sometimes the nvidia drivers crash in their atexit handlers...
      * if that happens, we'll try again, since we usually really,
      * really, do need to exit. */