Module: wine Branch: master Commit: 377071f42c68a25bf695db64b9a5dfdbad34e754 URL: http://source.winehq.org/git/wine.git/?a=commit;h=377071f42c68a25bf695db64b9...
Author: Jacek Caban jacek@codeweavers.com Date: Sun Oct 15 13:18:47 2006 +0200
mshtml: Don't crash in remove_doc_tasks if thread_data is not allocated.
---
dlls/mshtml/task.c | 3 +++ 1 files changed, 3 insertions(+), 0 deletions(-)
diff --git a/dlls/mshtml/task.c b/dlls/mshtml/task.c index 87a6add..25b9501 100644 --- a/dlls/mshtml/task.c +++ b/dlls/mshtml/task.c @@ -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();