mirror of
https://github.com/reactos/wine.git
synced 2025-01-21 03:15:18 +00:00
urlmon: Set the queue tail to the new task when pushing a task onto the tail of the queue.
This commit is contained in:
parent
2f71832ac9
commit
a63419bc2c
@ -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);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user