Nikolay Sivov : mshtml: Make it clear that ATTR_FIX_PX and ATTR_FIX_URL as exclusive (Coverity).

Alexandre Julliard julliard at wine.codeweavers.com
Wed Nov 11 08:36:43 CST 2015


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

Author: Nikolay Sivov <nsivov at codeweavers.com>
Date:   Tue Nov 10 22:31:29 2015 +0300

mshtml: Make it clear that ATTR_FIX_PX and ATTR_FIX_URL as exclusive (Coverity).

Signed-off-by: Nikolay Sivov <nsivov at codeweavers.com>
Signed-off-by: Jacek Caban <jacek at codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>

---

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

diff --git a/dlls/mshtml/htmlstyle.c b/dlls/mshtml/htmlstyle.c
index 33318ff..d0953f2 100644
--- a/dlls/mshtml/htmlstyle.c
+++ b/dlls/mshtml/htmlstyle.c
@@ -405,7 +405,7 @@ HRESULT set_nsstyle_attr(nsIDOMCSSStyleDeclaration *nsstyle, styleid_t sid, cons
     if(value) {
         if(flags & ATTR_FIX_PX)
             val = fix_px_value(value);
-        if(flags & ATTR_FIX_URL)
+        else if(flags & ATTR_FIX_URL)
             val = fix_url_value(value);
     }
 




More information about the wine-cvs mailing list