mshtml: Initialize HTMLSelectionObject object with compat mode.
Signed-off-by: Jacek Caban <jacek@codeweavers.com> Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
8b0f1721bb
commit
45c682c74b
dlls/mshtml
|
@ -343,7 +343,8 @@ HRESULT HTMLSelectionObject_Create(HTMLDocumentNode *doc, nsISelection *nsselect
|
|||
if(!selection)
|
||||
return E_OUTOFMEMORY;
|
||||
|
||||
init_dispex(&selection->dispex, (IUnknown*)&selection->IHTMLSelectionObject_iface, &HTMLSelectionObject_dispex);
|
||||
init_dispex_with_compat_mode(&selection->dispex, (IUnknown*)&selection->IHTMLSelectionObject_iface,
|
||||
&HTMLSelectionObject_dispex, dispex_compat_mode(&doc->node.event_target.dispex));
|
||||
|
||||
selection->IHTMLSelectionObject_iface.lpVtbl = &HTMLSelectionObjectVtbl;
|
||||
selection->IHTMLSelectionObject2_iface.lpVtbl = &HTMLSelectionObject2Vtbl;
|
||||
|
|
Loading…
Reference in New Issue