From 158c49ca4824b8c28a78820c19a6ef4e9d27c8b5 Mon Sep 17 00:00:00 2001 From: Jacek Caban Date: Mon, 29 Mar 2021 12:05:20 +0200 Subject: [PATCH] mshtml: Support DispHTMLHeadElement interface. Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=50492 Signed-off-by: Jacek Caban Signed-off-by: Alexandre Julliard (cherry picked from commit 4efad17a9ffc1be95663b1c6cc84c16fb7830d89) Signed-off-by: Michael Stefaniuc --- 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 };