Andrey Gusev : mshtml: Remove redundant condition.

Alexandre Julliard julliard at winehq.org
Tue Jan 29 15:18:16 CST 2019


Module: wine
Branch: master
Commit: 870598b8b0a6db8f796acec83b67e738b213dea0
URL:    https://source.winehq.org/git/wine.git/?a=commit;h=870598b8b0a6db8f796acec83b67e738b213dea0

Author: Andrey Gusev <andrey.goosev at gmail.com>
Date:   Tue Jan 29 18:30:40 2019 +0200

mshtml: Remove redundant condition.

Signed-off-by: Andrey Gusev <andrey.goosev at gmail.com>
Signed-off-by: Jacek Caban <jacek at codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>

---

 dlls/mshtml/htmlevent.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/dlls/mshtml/htmlevent.c b/dlls/mshtml/htmlevent.c
index c0171c8..cab39d6 100644
--- a/dlls/mshtml/htmlevent.c
+++ b/dlls/mshtml/htmlevent.c
@@ -2256,7 +2256,7 @@ static DOMEvent *alloc_event(nsIDOMEvent *nsevent, eventid_t event_id)
         custom_event->event.destroy = DOMCustomEvent_destroy;
         event = &custom_event->event;
         dispex_data = &DOMCustomEvent_dispex;
-    }else if(!event) {
+    }else {
         event = heap_alloc_zero(sizeof(*event));
         if(!event)
             return NULL;




More information about the wine-cvs mailing list