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

This commit is contained in:
Alexandre Julliard 2007-12-20 16:43:14 +01:00
parent d1b356745b
commit ffbeae78f7
1 changed files with 2 additions and 1 deletions

View File

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