mshtml: Use DispHTMLDOMImplementation for IDispatchEx implementation.

Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
stable
Jacek Caban 2019-04-18 15:36:56 +02:00 committed by Alexandre Julliard
parent c06af48420
commit e0408dd802
3 changed files with 5 additions and 1 deletions

View File

@ -95,6 +95,7 @@ typedef struct EventTarget EventTarget;
XDIID(DispHTMLCurrentStyle) \
XDIID(DispHTMLDocument) \
XDIID(DispHTMLDOMAttribute) \
XDIID(DispHTMLDOMImplementation) \
XDIID(DispHTMLDOMTextNode) \
XDIID(DispHTMLElementCollection) \
XDIID(DispHTMLEmbed) \
@ -171,6 +172,7 @@ typedef struct EventTarget EventTarget;
XIID(IHTMLDOMAttribute2) \
XIID(IHTMLDOMChildrenCollection) \
XIID(IHTMLDOMImplementation) \
XIID(IHTMLDOMImplementation2) \
XIID(IHTMLDOMNode) \
XIID(IHTMLDOMNode2) \
XIID(IHTMLDOMNode3) \

View File

@ -306,7 +306,7 @@ static const tid_t HTMLDOMImplementation_iface_tids[] = {
};
static dispex_static_data_t HTMLDOMImplementation_dispex = {
NULL,
IHTMLDOMImplementation_tid,
DispHTMLDOMImplementation_tid,
HTMLDOMImplementation_iface_tids
};

View File

@ -7010,6 +7010,8 @@ static void test_dom_implementation(IHTMLDocument2 *doc)
IHTMLWindow2 *window;
IDispatch *disp;
test_disp((IUnknown*)dom_implementation, &DIID_DispHTMLDOMImplementation, NULL, "[object]");
str = a2bstr("test");
hres = IHTMLDOMImplementation2_createHTMLDocument(dom_implementation2, str, &new_document);
ok(hres == S_OK, "createHTMLDocument failed: %08x\n", hres);