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

This commit is contained in:
Marcus Meissner 2010-06-05 09:21:36 +02:00 committed by Alexandre Julliard
parent f01c43c47b
commit 4169d4dfb8
1 changed files with 1 additions and 1 deletions

View File

@ -58,7 +58,7 @@ static void window_set_docnode(HTMLWindow *window, HTMLDocumentNode *doc_node)
htmldoc_addref(&doc_node->basedoc); 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; nsIDOMNSHTMLDocument *nshtmldoc;
nsAString mode_str; nsAString mode_str;
nsresult nsres; nsresult nsres;