Commit 4169d4df authored by Marcus Meissner's avatar Marcus Meissner Committed by Alexandre Julliard

mshtml: Add check for doc_obj being NULL (Coverity).

parent f01c43c4
......@@ -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;
......
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