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

Alexandre Julliard julliard at winehq.org
Fri Mar 12 14:36:16 CST 2021


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

Author: Jacek Caban <jacek at codeweavers.com>
Date:   Fri Mar 12 17:40:20 2021 +0100

mshtml: Initialize OmHistory object with compat mode.

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

---

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

diff --git a/dlls/mshtml/omnavigator.c b/dlls/mshtml/omnavigator.c
index 2a98c159332..7e99e1476f7 100644
--- a/dlls/mshtml/omnavigator.c
+++ b/dlls/mshtml/omnavigator.c
@@ -733,7 +733,8 @@ HRESULT create_history(HTMLInnerWindow *window, OmHistory **ret)
     if(!history)
         return E_OUTOFMEMORY;
 
-    init_dispex(&history->dispex, (IUnknown*)&history->IOmHistory_iface, &OmHistory_dispex);
+    init_dispex_with_compat_mode(&history->dispex, (IUnknown*)&history->IOmHistory_iface, &OmHistory_dispex,
+                                 dispex_compat_mode(&window->event_target.dispex));
     history->IOmHistory_iface.lpVtbl = &OmHistoryVtbl;
     history->ref = 1;
 




More information about the wine-cvs mailing list