Jacek Caban : mshtml: Support DispHTMLHeadElement interface.
Alexandre Julliard
julliard at winehq.org
Tue Oct 26 09:40:26 CDT 2021
Module: wine
Branch: stable
Commit: 158c49ca4824b8c28a78820c19a6ef4e9d27c8b5
URL: https://source.winehq.org/git/wine.git/?a=commit;h=158c49ca4824b8c28a78820c19a6ef4e9d27c8b5
Author: Jacek Caban <jacek at codeweavers.com>
Date: Mon Mar 29 12:05:20 2021 +0200
mshtml: Support DispHTMLHeadElement interface.
Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=50492
Signed-off-by: Jacek Caban <jacek at codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>
(cherry picked from commit 4efad17a9ffc1be95663b1c6cc84c16fb7830d89)
Signed-off-by: Michael Stefaniuc <mstefani at winehq.org>
---
dlls/mshtml/htmlhead.c | 2 ++
dlls/mshtml/tests/dom.c | 1 +
2 files changed, 3 insertions(+)
diff --git a/dlls/mshtml/htmlhead.c b/dlls/mshtml/htmlhead.c
index 879eca424ae..5dbf8d6b6bd 100644
--- a/dlls/mshtml/htmlhead.c
+++ b/dlls/mshtml/htmlhead.c
@@ -719,6 +719,8 @@ static HRESULT HTMLHeadElement_QI(HTMLDOMNode *iface, REFIID riid, void **ppv)
if(IsEqualGUID(&IID_IHTMLHeadElement, riid))
*ppv = &This->IHTMLHeadElement_iface;
+ else if(IsEqualGUID(&DIID_DispHTMLHeadElement, riid))
+ *ppv = &This->IHTMLHeadElement_iface;
else
return HTMLElement_QI(&This->element.node, riid, ppv);
diff --git a/dlls/mshtml/tests/dom.c b/dlls/mshtml/tests/dom.c
index e46fc54bb70..e87eee94cdf 100644
--- a/dlls/mshtml/tests/dom.c
+++ b/dlls/mshtml/tests/dom.c
@@ -375,6 +375,7 @@ static const IID * const html_iids[] = {
static const IID * const head_iids[] = {
ELEM_IFACES,
&IID_IHTMLHeadElement,
+ &DIID_DispHTMLHeadElement,
&IID_IConnectionPointContainer,
NULL
};
More information about the wine-cvs
mailing list