mshtml: Use debugstr_mshtml_guid in object and embed element implementation.
This commit is contained in:
parent
81c13caf37
commit
b94dd24eaf
|
@ -227,14 +227,13 @@ static HRESULT HTMLEmbedElement_QI(HTMLDOMNode *iface, REFIID riid, void **ppv)
|
|||
{
|
||||
HTMLEmbedElement *This = impl_from_HTMLDOMNode(iface);
|
||||
|
||||
TRACE("(%p)->(%s %p)\n", This, debugstr_mshtml_guid(riid), ppv);
|
||||
|
||||
if(IsEqualGUID(&IID_IUnknown, riid)) {
|
||||
TRACE("(%p)->(IID_IUnknown %p)\n", This, ppv);
|
||||
*ppv = &This->IHTMLEmbedElement_iface;
|
||||
}else if(IsEqualGUID(&IID_IDispatch, riid)) {
|
||||
TRACE("(%p)->(IID_IDispatch %p)\n", This, ppv);
|
||||
*ppv = &This->IHTMLEmbedElement_iface;
|
||||
}else if(IsEqualGUID(&IID_IHTMLEmbedElement, riid)) {
|
||||
TRACE("(%p)->(IID_IHTMLEmbedElement %p)\n", This, ppv);
|
||||
*ppv = &This->IHTMLEmbedElement_iface;
|
||||
}else {
|
||||
return HTMLElement_QI(&This->element.node, riid, ppv);
|
||||
|
|
|
@ -645,21 +645,18 @@ static HRESULT HTMLObjectElement_QI(HTMLDOMNode *iface, REFIID riid, void **ppv)
|
|||
{
|
||||
HTMLObjectElement *This = impl_from_HTMLDOMNode(iface);
|
||||
|
||||
TRACE("(%p)->(%s %p)\n", This, debugstr_mshtml_guid(riid), ppv);
|
||||
|
||||
if(IsEqualGUID(&IID_IUnknown, riid)) {
|
||||
TRACE("(%p)->(IID_IUnknown %p)\n", This, ppv);
|
||||
*ppv = &This->IHTMLObjectElement_iface;
|
||||
}else if(IsEqualGUID(&IID_IDispatch, riid)) {
|
||||
TRACE("(%p)->(IID_IDispatch %p)\n", This, ppv);
|
||||
*ppv = &This->IHTMLObjectElement_iface;
|
||||
}else if(IsEqualGUID(&IID_IHTMLObjectElement, riid)) {
|
||||
TRACE("(%p)->(IID_IHTMLObjectElement %p)\n", This, ppv);
|
||||
*ppv = &This->IHTMLObjectElement_iface;
|
||||
}else if(IsEqualGUID(&IID_IHTMLObjectElement2, riid)) {
|
||||
TRACE("(%p)->(IID_IHTMLObjectElement2 %p)\n", This, ppv);
|
||||
*ppv = &This->IHTMLObjectElement2_iface;
|
||||
}else if(IsEqualGUID(&IID_HTMLPluginContainer, riid)) {
|
||||
/* Special pseudo-interface returning HTMLPluginContainse struct. */
|
||||
TRACE("(%p)->(IID_HTMLPluginContainer %p)\n", This, ppv);
|
||||
*ppv = &This->plugin_container;
|
||||
node_addref(&This->plugin_container.element.node);
|
||||
return S_OK;
|
||||
|
|
|
@ -42,6 +42,7 @@
|
|||
#define INIT_GUID
|
||||
#include "mshtml_private.h"
|
||||
#include "resource.h"
|
||||
#include "pluginhost.h"
|
||||
|
||||
WINE_DEFAULT_DEBUG_CHANNEL(mshtml);
|
||||
|
||||
|
@ -540,6 +541,7 @@ const char *debugstr_mshtml_guid(const GUID *iid)
|
|||
X(DIID_HTMLDocumentEvents2);
|
||||
X(DIID_HTMLTableEvents);
|
||||
X(DIID_HTMLTextContainerEvents);
|
||||
X(IID_HTMLPluginContainer);
|
||||
X(IID_IConnectionPoint);
|
||||
X(IID_IConnectionPointContainer);
|
||||
X(IID_ICustomDoc);
|
||||
|
|
|
@ -37,9 +37,6 @@
|
|||
|
||||
WINE_DEFAULT_DEBUG_CHANNEL(mshtml);
|
||||
|
||||
const IID IID_HTMLPluginContainer =
|
||||
{0xbd7a6050,0xb373,0x4f6f,{0xa4,0x93,0xdd,0x40,0xc5,0x23,0xa8,0x6a}};
|
||||
|
||||
static BOOL check_load_safety(PluginHost *host)
|
||||
{
|
||||
DWORD policy_size, policy;
|
||||
|
|
|
@ -58,6 +58,8 @@ struct HTMLPluginContainer {
|
|||
DWORD props_len;
|
||||
};
|
||||
|
||||
DEFINE_GUID(IID_HTMLPluginContainer, 0xbd7a6050,0xb373,0x4f6f,0xa4,0x93,0xdd,0x40,0xc5,0x23,0xa8,0x6a);
|
||||
|
||||
extern const IID IID_HTMLPluginContainer DECLSPEC_HIDDEN;
|
||||
|
||||
HRESULT create_plugin_host(HTMLDocumentNode*,HTMLPluginContainer*) DECLSPEC_HIDDEN;
|
||||
|
|
Loading…
Reference in New Issue