Alistair Leslie-Hughes : mshtml: Make IHTMLBodyElement use correct IDispatchEx interface.
Alexandre Julliard
julliard at winehq.org
Wed Sep 3 07:43:59 CDT 2008
Module: wine
Branch: master
Commit: aee6a2d8e1a53574918951ae4a9c6307d963d826
URL: http://source.winehq.org/git/wine.git/?a=commit;h=aee6a2d8e1a53574918951ae4a9c6307d963d826
Author: Alistair Leslie-Hughes <leslie_alistair at hotmail.com>
Date: Mon Sep 1 22:21:21 2008 +1000
mshtml: Make IHTMLBodyElement use correct IDispatchEx interface.
---
dlls/mshtml/htmlbody.c | 24 ++++++++++++++++++++++++
1 files changed, 24 insertions(+), 0 deletions(-)
diff --git a/dlls/mshtml/htmlbody.c b/dlls/mshtml/htmlbody.c
index 2d30895..13c802e 100644
--- a/dlls/mshtml/htmlbody.c
+++ b/dlls/mshtml/htmlbody.c
@@ -591,6 +591,28 @@ static const NodeImplVtbl HTMLBodyElementImplVtbl = {
HTMLBodyElement_destructor
};
+static const tid_t HTMLBodyElement_iface_tids[] = {
+ IHTMLBodyElement_tid,
+ IHTMLBodyElement2_tid,
+ IHTMLControlElement_tid,
+ IHTMLDOMNode_tid,
+ IHTMLDOMNode2_tid,
+ IHTMLElement_tid,
+ IHTMLElement2_tid,
+ IHTMLElement3_tid,
+ IHTMLElement4_tid,
+ IHTMLTextContainer_tid,
+ IHTMLUniqueName_tid,
+ 0
+};
+
+static dispex_static_data_t HTMLBodyElement_dispex = {
+ NULL,
+ DispHTMLBody_tid,
+ NULL,
+ HTMLBodyElement_iface_tids
+};
+
HTMLElement *HTMLBodyElement_Create(nsIDOMHTMLElement *nselem)
{
HTMLBodyElement *ret = heap_alloc_zero(sizeof(HTMLBodyElement));
@@ -601,6 +623,8 @@ HTMLElement *HTMLBodyElement_Create(nsIDOMHTMLElement *nselem)
HTMLTextContainer_Init(&ret->textcont);
ret->lpHTMLBodyElementVtbl = &HTMLBodyElementVtbl;
+
+ init_dispex(&ret->textcont.element.node.dispex, (IUnknown*)HTMLBODY(ret), &HTMLBodyElement_dispex);
ret->textcont.element.node.vtbl = &HTMLBodyElementImplVtbl;
ConnectionPoint_Init(&ret->cp_propnotif, &ret->textcont.element.cp_container, &IID_IPropertyNotifySink);
More information about the wine-cvs
mailing list