Jacek Caban : mshtml: Initialize HTMLRectCollection object with compat mode.

Alexandre Julliard julliard at winehq.org
Thu Mar 11 15:59:36 CST 2021


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

Author: Jacek Caban <jacek at codeweavers.com>
Date:   Thu Mar 11 20:40:06 2021 +0100

mshtml: Initialize HTMLRectCollection object with compat mode.

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

---

 dlls/mshtml/htmlelem.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/dlls/mshtml/htmlelem.c b/dlls/mshtml/htmlelem.c
index 514212217e1..1a5ac7f5717 100644
--- a/dlls/mshtml/htmlelem.c
+++ b/dlls/mshtml/htmlelem.c
@@ -2670,7 +2670,8 @@ static HRESULT WINAPI HTMLElement2_getClientRects(IHTMLElement2 *iface, IHTMLRec
     rects->IHTMLRectCollection_iface.lpVtbl = &HTMLRectCollectionVtbl;
     rects->ref = 1;
     rects->rect_list = rect_list;
-    init_dispex(&rects->dispex, (IUnknown*)&rects->IHTMLRectCollection_iface, &HTMLRectCollection_dispex);
+    init_dispex_with_compat_mode(&rects->dispex, (IUnknown*)&rects->IHTMLRectCollection_iface,
+                                 &HTMLRectCollection_dispex, dispex_compat_mode(&This->node.event_target.dispex));
 
     *pRectCol = &rects->IHTMLRectCollection_iface;
     return S_OK;




More information about the wine-cvs mailing list