Commit a63419bc authored by Misha Koshelev's avatar Misha Koshelev Committed by Alexandre Julliard

urlmon: Set the queue tail to the new task when pushing a task onto the tail of the queue.

parent 2f71832a
......@@ -122,10 +122,12 @@ static void push_task(Binding *binding, task_header_t *task, task_proc_t proc)
EnterCriticalSection(&binding->section);
if(binding->task_queue_tail)
if(binding->task_queue_tail) {
binding->task_queue_tail->next = task;
else
binding->task_queue_tail = task;
}else {
binding->task_queue_tail = binding->task_queue_head = task;
}
LeaveCriticalSection(&binding->section);
}
......
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