Remove the process locks in process_killed, not process_destroy.

This commit is contained in:
Alexandre Julliard 2005-06-14 19:23:56 +00:00
parent 302cd456c3
commit 5f22e7caf6
1 changed files with 1 additions and 1 deletions

View File

@ -424,7 +424,6 @@ static void process_destroy( struct object *obj )
assert( list_empty( &process->thread_list )); assert( list_empty( &process->thread_list ));
set_process_startup_state( process, STARTUP_ABORTED ); set_process_startup_state( process, STARTUP_ABORTED );
remove_process_locks( process );
if (process->console) release_object( process->console ); if (process->console) release_object( process->console );
if (process->parent) release_object( process->parent ); if (process->parent) release_object( process->parent );
if (process->msg_fd) release_object( process->msg_fd ); if (process->msg_fd) release_object( process->msg_fd );
@ -623,6 +622,7 @@ static void process_killed( struct process *process )
free( dll ); free( dll );
} }
destroy_process_classes( process ); destroy_process_classes( process );
remove_process_locks( process );
set_process_startup_state( process, STARTUP_ABORTED ); set_process_startup_state( process, STARTUP_ABORTED );
if (process->exe.file) release_object( process->exe.file ); if (process->exe.file) release_object( process->exe.file );
process->exe.file = NULL; process->exe.file = NULL;