From 4169d4dfb89cf2c69fdd2050f43e2491f08be6b8 Mon Sep 17 00:00:00 2001 From: Marcus Meissner Date: Sat, 5 Jun 2010 09:21:36 +0200 Subject: [PATCH] mshtml: Add check for doc_obj being NULL (Coverity). --- dlls/mshtml/htmlwindow.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dlls/mshtml/htmlwindow.c b/dlls/mshtml/htmlwindow.c index 1701b53328..1ba1101e81 100644 --- a/dlls/mshtml/htmlwindow.c +++ b/dlls/mshtml/htmlwindow.c @@ -58,7 +58,7 @@ static void window_set_docnode(HTMLWindow *window, HTMLDocumentNode *doc_node) htmldoc_addref(&doc_node->basedoc); } - if(doc_node && window->doc_obj->usermode == EDITMODE) { + if(doc_node && window->doc_obj && window->doc_obj->usermode == EDITMODE) { nsIDOMNSHTMLDocument *nshtmldoc; nsAString mode_str; nsresult nsres; -- 2.32.0.93.g670b81a890