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

This commit is contained in:
Misha Koshelev 2007-08-02 00:03:31 -05:00 committed by Alexandre Julliard
parent 2f71832ac9
commit a63419bc2c
1 changed files with 4 additions and 2 deletions

View File

@ -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);
}