[PATCH] mshtml: Fixed reversed NULl check.

Marcus Meissner marcus at jet.franken.de
Thu Oct 30 17:33:57 CDT 2008


Hi,

Coverity CID 808, spotted that if (This) should
bne if (!This) actually.

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

diff --git a/dlls/mshtml/editor.c b/dlls/mshtml/editor.c
index 4e02155..efbaf23 100644
--- a/dlls/mshtml/editor.c
+++ b/dlls/mshtml/editor.c
@@ -1176,7 +1176,7 @@ static HRESULT exec_hyperlink(HTMLDocument *This, DWORD cmdexecopt, VARIANT *in,
             return OLECMDERR_E_CANCELED;
     }
 
-    if(This->nsdoc) {
+    if(!This->nsdoc) {
         WARN("NULL nsdoc\n");
         return E_UNEXPECTED;
     }
-- 
1.5.6



More information about the wine-patches mailing list