[PATCH v3 02/17] mshtml: Always create filters collection with older compat mode.

Gabriel Ivăncescu gabrielopcode at gmail.com
Wed Oct 6 10:11:32 CDT 2021


So dispex_to_string returns [object].

Signed-off-by: Gabriel Ivăncescu <gabrielopcode at gmail.com>
---
 dlls/mshtml/htmlelem.c | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/dlls/mshtml/htmlelem.c b/dlls/mshtml/htmlelem.c
index cb7a528..2293a34 100644
--- a/dlls/mshtml/htmlelem.c
+++ b/dlls/mshtml/htmlelem.c
@@ -261,7 +261,7 @@ static inline HTMLFiltersCollection *impl_from_IHTMLFiltersCollection(IHTMLFilte
     return CONTAINING_RECORD(iface, HTMLFiltersCollection, IHTMLFiltersCollection_iface);
 }
 
-static HRESULT create_filters_collection(compat_mode_t compat_mode, IHTMLFiltersCollection **ret);
+static HRESULT create_filters_collection(IHTMLFiltersCollection **ret);
 
 static inline HTMLElement *impl_from_IHTMLElement(IHTMLElement *iface)
 {
@@ -2090,7 +2090,7 @@ static HRESULT WINAPI HTMLElement_get_filters(IHTMLElement *iface, IHTMLFiltersC
     if(!p)
         return E_POINTER;
 
-    return create_filters_collection(dispex_compat_mode(&This->node.event_target.dispex), p);
+    return create_filters_collection(p);
 }
 
 static HRESULT WINAPI HTMLElement_put_ondragstart(IHTMLElement *iface, VARIANT v)
@@ -7063,7 +7063,7 @@ static dispex_static_data_t HTMLFiltersCollection_dispex = {
     HTMLFiltersCollection_iface_tids
 };
 
-static HRESULT create_filters_collection(compat_mode_t compat_mode, IHTMLFiltersCollection **ret)
+static HRESULT create_filters_collection(IHTMLFiltersCollection **ret)
 {
     HTMLFiltersCollection *collection;
 
@@ -7074,7 +7074,7 @@ static HRESULT create_filters_collection(compat_mode_t compat_mode, IHTMLFilters
     collection->ref = 1;
 
     init_dispatch(&collection->dispex, (IUnknown*)&collection->IHTMLFiltersCollection_iface,
-                  &HTMLFiltersCollection_dispex, compat_mode);
+                  &HTMLFiltersCollection_dispex, COMPAT_MODE_IE8);
 
     *ret = &collection->IHTMLFiltersCollection_iface;
     return S_OK;
-- 
2.31.1




More information about the wine-devel mailing list