Commit 377071f4 authored by Jacek Caban's avatar Jacek Caban Committed by Alexandre Julliard

mshtml: Don't crash in remove_doc_tasks if thread_data is not allocated.

parent 2638e9d4
......@@ -71,6 +71,9 @@ void remove_doc_tasks(HTMLDocument *doc)
thread_data_t *thread_data = get_thread_data(FALSE);
task_t *iter, *tmp;
if(!thread_data)
return;
while(thread_data->task_queue_head
&& thread_data->task_queue_head->doc == doc)
pop_task();
......
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