Jacek Caban : mshtml: Don'
t crash in remove_doc_tasks if thread_data is not allocated.
Alexandre Julliard
julliard at wine.codeweavers.com
Mon Oct 16 05:28:39 CDT 2006
Module: wine
Branch: master
Commit: 377071f42c68a25bf695db64b9a5dfdbad34e754
URL: http://source.winehq.org/git/wine.git/?a=commit;h=377071f42c68a25bf695db64b9a5dfdbad34e754
Author: Jacek Caban <jacek at 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();
More information about the wine-cvs
mailing list