[PATCH] mshtml: removed duplicate condition (Coverity)

Marcus Meissner marcus at jet.franken.de
Wed Oct 3 08:49:00 CDT 2012


This->dynamic_data was tested twice.

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

diff --git a/dlls/mshtml/dispex.c b/dlls/mshtml/dispex.c
index 7ce53b2..58fcd9a 100644
--- a/dlls/mshtml/dispex.c
+++ b/dlls/mshtml/dispex.c
@@ -755,7 +755,7 @@ static HRESULT function_invoke(DispatchEx *This, func_info_t *func, WORD flags,
             return E_INVALIDARG;
         /* fall through */
     case DISPATCH_METHOD:
-        if(This->dynamic_data && This->dynamic_data && This->dynamic_data->func_disps
+        if(This->dynamic_data && This->dynamic_data->func_disps
            && This->dynamic_data->func_disps[func->func_disp_idx].func_obj) {
             func_obj_entry_t *entry = This->dynamic_data->func_disps + func->func_disp_idx;
 
-- 
1.7.3.4




More information about the wine-patches mailing list