Commit 49868e3c authored by Alexandre Julliard's avatar Alexandre Julliard

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

Reported by Misha Koshelev.
parent 0c3f1215
......@@ -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 );
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment