Alexandre Julliard : server: Don' t count system processes as users of a desktop.

Alexandre Julliard julliard at winehq.org
Fri Dec 21 07:28:24 CST 2007


Module: wine
Branch: master
Commit: ffbeae78f76f4b6c1ce2d51093473044b9f49522
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=ffbeae78f76f4b6c1ce2d51093473044b9f49522

Author: Alexandre Julliard <julliard at winehq.org>
Date:   Thu Dec 20 16:43:14 2007 +0100

server: Don't count system processes as users of a desktop.

---

 server/process.c |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/server/process.c b/server/process.c
index 26b1863..23a4ec0 100644
--- a/server/process.c
+++ b/server/process.c
@@ -601,7 +601,7 @@ static void process_killed( struct process *process )
 
     assert( list_empty( &process->thread_list ));
     process->end_time = current_time;
-    close_process_desktop( process );
+    if (!process->is_system) close_process_desktop( process );
     handles = process->handles;
     process->handles = NULL;
     if (handles) release_object( handles );
@@ -1191,6 +1191,7 @@ DECL_HANDLER(make_process_system)
     if (!process->is_system)
     {
         process->is_system = 1;
+        close_process_desktop( process );
         if (!--user_processes) set_event( user_process_event );
     }
 }




More information about the wine-cvs mailing list