marcus@jet.franken.de: [PATCH] mshtml: Fixed reversed NULl check.

1 view
Skip to first unread message

Patchwatcher

unread,
Oct 30, 2008, 6:50:07 PM10/30/08
to wine-patch...@googlegroups.com
From: Marcus Meissner <mar...@jet.franken.de>
Subject: [PATCH] mshtml: Fixed reversed NULl check.
Date: Thu, 30 Oct 2008 23:33:57 +0100


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


Reply all
Reply to author
Forward
0 new messages