mshtml: Remove superflous check (Coverity).

This commit is contained in:
Marcus Meissner 2012-07-18 20:27:03 +02:00 committed by Alexandre Julliard
parent 7c9d35e575
commit b810fad34c

View file

@ -2772,7 +2772,7 @@ HRESULT update_window_doc(HTMLInnerWindow *window)
outer_window->base.inner_window = window; outer_window->base.inner_window = window;
outer_window->pending_window = NULL; outer_window->pending_window = NULL;
if(outer_window->doc_obj && (outer_window->doc_obj->basedoc.window == outer_window || !outer_window->doc_obj->basedoc.window)) { if(outer_window->doc_obj->basedoc.window == outer_window || !outer_window->doc_obj->basedoc.window) {
if(outer_window->doc_obj->basedoc.doc_node) if(outer_window->doc_obj->basedoc.doc_node)
htmldoc_release(&outer_window->doc_obj->basedoc.doc_node->basedoc); htmldoc_release(&outer_window->doc_obj->basedoc.doc_node->basedoc);
outer_window->doc_obj->basedoc.doc_node = window->doc; outer_window->doc_obj->basedoc.doc_node = window->doc;