server: Clear the thread wait before releasing objects to avoid nested calls.

Reported by Misha Koshelev.
This commit is contained in:
Alexandre Julliard 2007-02-05 18:05:03 +01:00
parent 0c3f12154c
commit 49868e3c93
1 changed files with 1 additions and 1 deletions

View File

@ -447,10 +447,10 @@ static void end_wait( struct thread *thread )
int i;
assert( wait );
thread->wait = wait->next;
for (i = 0, entry = wait->queues; i < wait->count; i++, entry++)
entry->obj->ops->remove_queue( entry->obj, entry );
if (wait->user) remove_timeout_user( wait->user );
thread->wait = wait->next;
free( wait );
}