From 5f22e7caf6857ac54931c40cc25764712ce157bc Mon Sep 17 00:00:00 2001 From: Alexandre Julliard Date: Tue, 14 Jun 2005 19:23:56 +0000 Subject: [PATCH] Remove the process locks in process_killed, not process_destroy. --- server/process.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/process.c b/server/process.c index 89153c76e33..279901c15ee 100644 --- a/server/process.c +++ b/server/process.c @@ -424,7 +424,6 @@ static void process_destroy( struct object *obj ) assert( list_empty( &process->thread_list )); set_process_startup_state( process, STARTUP_ABORTED ); - remove_process_locks( process ); if (process->console) release_object( process->console ); if (process->parent) release_object( process->parent ); if (process->msg_fd) release_object( process->msg_fd ); @@ -623,6 +622,7 @@ static void process_killed( struct process *process ) free( dll ); } destroy_process_classes( process ); + remove_process_locks( process ); set_process_startup_state( process, STARTUP_ABORTED ); if (process->exe.file) release_object( process->exe.file ); process->exe.file = NULL;