Marcus Meissner : mshtml: Remove superflous check (Coverity).

Alexandre Julliard julliard at winehq.org
Thu Jul 19 13:23:42 CDT 2012


Module: wine
Branch: master
Commit: b810fad34c2c0e224e06efd8514cd2f013a9b36e
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=b810fad34c2c0e224e06efd8514cd2f013a9b36e

Author: Marcus Meissner <marcus at jet.franken.de>
Date:   Wed Jul 18 20:27:03 2012 +0200

mshtml: Remove superflous check (Coverity).

---

 dlls/mshtml/htmlwindow.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/dlls/mshtml/htmlwindow.c b/dlls/mshtml/htmlwindow.c
index 00e8b4d..3ade07e 100644
--- a/dlls/mshtml/htmlwindow.c
+++ b/dlls/mshtml/htmlwindow.c
@@ -2772,7 +2772,7 @@ HRESULT update_window_doc(HTMLInnerWindow *window)
     outer_window->base.inner_window = window;
     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)
             htmldoc_release(&outer_window->doc_obj->basedoc.doc_node->basedoc);
         outer_window->doc_obj->basedoc.doc_node = window->doc;




More information about the wine-cvs mailing list