mirror of
https://github.com/reactos/wine.git
synced 2025-02-20 12:50:53 +00:00
mshtml: Fixed timer setting in remove_target_tasks.
This commit is contained in:
parent
41603e0064
commit
448a621c5e
@ -128,8 +128,10 @@ void remove_target_tasks(LONG target)
|
||||
}
|
||||
|
||||
if(!list_empty(&thread_data->timer_list)) {
|
||||
DWORD tc = GetTickCount();
|
||||
|
||||
timer = LIST_ENTRY(list_head(&thread_data->timer_list), task_timer_t, entry);
|
||||
SetTimer(thread_data->thread_hwnd, TIMER_ID, timer->time - GetTickCount(), NULL);
|
||||
SetTimer(thread_data->thread_hwnd, TIMER_ID, max( (int)(timer->time - tc), 0 ), NULL);
|
||||
}
|
||||
|
||||
while(thread_data->task_queue_head && thread_data->task_queue_head->target_magic == target) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user