Jacek Caban : mshtml: Handle removeAttribute("filter") calls on detached style objects.

Alexandre Julliard julliard at winehq.org
Wed Mar 27 17:27:37 CDT 2019


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

Author: Jacek Caban <jacek at codeweavers.com>
Date:   Wed Mar 27 18:52:34 2019 +0100

mshtml: Handle removeAttribute("filter") calls on detached style objects.

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, 2 insertions(+)

diff --git a/dlls/mshtml/htmlstyle.c b/dlls/mshtml/htmlstyle.c
index 441346b..1a3f7b9 100644
--- a/dlls/mshtml/htmlstyle.c
+++ b/dlls/mshtml/htmlstyle.c
@@ -3158,6 +3158,8 @@ static HRESULT WINAPI HTMLStyle_removeAttribute(IHTMLStyle *iface, BSTR strAttri
 
     /* filter property is a special case */
     if(style_entry->compat_dispid == DISPID_IHTMLSTYLE_FILTER) {
+        if(!This->elem)
+            return E_UNEXPECTED;
         *pfSuccess = variant_bool(This->elem->filter && *This->elem->filter);
         heap_free(This->elem->filter);
         This->elem->filter = NULL;




More information about the wine-cvs mailing list