server: Fix list corruption caused by previous change.

This commit is contained in:
Alexandre Julliard 2006-11-13 12:53:09 +01:00
parent 396b0ad126
commit d6f8284c2f
1 changed files with 1 additions and 1 deletions

View File

@ -517,7 +517,7 @@ static void terminate_process( struct process *process, struct thread *skip, int
{
struct list *ptr;
if (skip) /* move it to the end of the list */
if (skip && skip->process == process) /* move it to the end of the list */
{
assert( skip->state != TERMINATED );
list_remove( &skip->proc_entry );