mshtml: Introduce a new debugstr_mshtml_guid helper for printing GUIDs.
This commit is contained in:
parent
980e9225d2
commit
a36876e9d6
|
@ -4136,106 +4136,81 @@ static BOOL htmldoc_qi(HTMLDocument *This, REFIID riid, void **ppv)
|
|||
{
|
||||
*ppv = NULL;
|
||||
|
||||
if(IsEqualGUID(&IID_IUnknown, riid)) {
|
||||
TRACE("(%p)->(IID_IUnknown, %p)\n", This, ppv);
|
||||
if(IsEqualGUID(&IID_IUnknown, riid))
|
||||
*ppv = &This->IHTMLDocument2_iface;
|
||||
}else if(IsEqualGUID(&IID_IDispatch, riid)) {
|
||||
TRACE("(%p)->(IID_IDispatch, %p)\n", This, ppv);
|
||||
else if(IsEqualGUID(&IID_IDispatch, riid))
|
||||
*ppv = &This->IDispatchEx_iface;
|
||||
}else if(IsEqualGUID(&IID_IDispatchEx, riid)) {
|
||||
TRACE("(%p)->(IID_IDispatchEx, %p)\n", This, ppv);
|
||||
else if(IsEqualGUID(&IID_IDispatchEx, riid))
|
||||
*ppv = &This->IDispatchEx_iface;
|
||||
}else if(IsEqualGUID(&IID_IHTMLDocument, riid)) {
|
||||
TRACE("(%p)->(IID_IHTMLDocument, %p)\n", This, ppv);
|
||||
else if(IsEqualGUID(&IID_IHTMLDocument, riid))
|
||||
*ppv = &This->IHTMLDocument2_iface;
|
||||
}else if(IsEqualGUID(&IID_IHTMLDocument2, riid)) {
|
||||
TRACE("(%p)->(IID_IHTMLDocument2, %p)\n", This, ppv);
|
||||
else if(IsEqualGUID(&IID_IHTMLDocument2, riid))
|
||||
*ppv = &This->IHTMLDocument2_iface;
|
||||
}else if(IsEqualGUID(&IID_IHTMLDocument3, riid)) {
|
||||
TRACE("(%p)->(IID_IHTMLDocument3, %p)\n", This, ppv);
|
||||
else if(IsEqualGUID(&IID_IHTMLDocument3, riid))
|
||||
*ppv = &This->IHTMLDocument3_iface;
|
||||
}else if(IsEqualGUID(&IID_IHTMLDocument4, riid)) {
|
||||
TRACE("(%p)->(IID_IHTMLDocument4, %p)\n", This, ppv);
|
||||
else if(IsEqualGUID(&IID_IHTMLDocument4, riid))
|
||||
*ppv = &This->IHTMLDocument4_iface;
|
||||
}else if(IsEqualGUID(&IID_IHTMLDocument5, riid)) {
|
||||
TRACE("(%p)->(IID_IHTMLDocument5, %p)\n", This, ppv);
|
||||
else if(IsEqualGUID(&IID_IHTMLDocument5, riid))
|
||||
*ppv = &This->IHTMLDocument5_iface;
|
||||
}else if(IsEqualGUID(&IID_IHTMLDocument6, riid)) {
|
||||
TRACE("(%p)->(IID_IHTMLDocument6, %p)\n", This, ppv);
|
||||
else if(IsEqualGUID(&IID_IHTMLDocument6, riid))
|
||||
*ppv = &This->IHTMLDocument6_iface;
|
||||
}else if(IsEqualGUID(&IID_IHTMLDocument7, riid)) {
|
||||
TRACE("(%p)->(IID_IHTMLDocument7, %p)\n", This, ppv);
|
||||
else if(IsEqualGUID(&IID_IHTMLDocument7, riid))
|
||||
*ppv = &This->IHTMLDocument7_iface;
|
||||
}else if(IsEqualGUID(&IID_IPersist, riid)) {
|
||||
TRACE("(%p)->(IID_IPersist, %p)\n", This, ppv);
|
||||
else if(IsEqualGUID(&IID_IPersist, riid))
|
||||
*ppv = &This->IPersistFile_iface;
|
||||
}else if(IsEqualGUID(&IID_IPersistMoniker, riid)) {
|
||||
TRACE("(%p)->(IID_IPersistMoniker, %p)\n", This, ppv);
|
||||
else if(IsEqualGUID(&IID_IPersistMoniker, riid))
|
||||
*ppv = &This->IPersistMoniker_iface;
|
||||
}else if(IsEqualGUID(&IID_IPersistFile, riid)) {
|
||||
TRACE("(%p)->(IID_IPersistFile, %p)\n", This, ppv);
|
||||
else if(IsEqualGUID(&IID_IPersistFile, riid))
|
||||
*ppv = &This->IPersistFile_iface;
|
||||
}else if(IsEqualGUID(&IID_IMonikerProp, riid)) {
|
||||
TRACE("(%p)->(IID_IMonikerProp, %p)\n", This, ppv);
|
||||
else if(IsEqualGUID(&IID_IMonikerProp, riid))
|
||||
*ppv = &This->IMonikerProp_iface;
|
||||
}else if(IsEqualGUID(&IID_IOleObject, riid)) {
|
||||
TRACE("(%p)->(IID_IOleObject, %p)\n", This, ppv);
|
||||
else if(IsEqualGUID(&IID_IOleObject, riid))
|
||||
*ppv = &This->IOleObject_iface;
|
||||
}else if(IsEqualGUID(&IID_IOleDocument, riid)) {
|
||||
TRACE("(%p)->(IID_IOleDocument, %p)\n", This, ppv);
|
||||
else if(IsEqualGUID(&IID_IOleDocument, riid))
|
||||
*ppv = &This->IOleDocument_iface;
|
||||
}else if(IsEqualGUID(&IID_IOleDocumentView, riid)) {
|
||||
TRACE("(%p)->(IID_IOleDocumentView, %p)\n", This, ppv);
|
||||
else if(IsEqualGUID(&IID_IOleDocumentView, riid))
|
||||
*ppv = &This->IOleDocumentView_iface;
|
||||
}else if(IsEqualGUID(&IID_IOleInPlaceActiveObject, riid)) {
|
||||
TRACE("(%p)->(IID_IOleInPlaceActiveObject, %p)\n", This, ppv);
|
||||
else if(IsEqualGUID(&IID_IOleInPlaceActiveObject, riid))
|
||||
*ppv = &This->IOleInPlaceActiveObject_iface;
|
||||
}else if(IsEqualGUID(&IID_IViewObject, riid)) {
|
||||
TRACE("(%p)->(IID_IViewObject, %p)\n", This, ppv);
|
||||
else if(IsEqualGUID(&IID_IViewObject, riid))
|
||||
*ppv = &This->IViewObjectEx_iface;
|
||||
}else if(IsEqualGUID(&IID_IViewObject2, riid)) {
|
||||
TRACE("(%p)->(IID_IViewObject2, %p)\n", This, ppv);
|
||||
else if(IsEqualGUID(&IID_IViewObject2, riid))
|
||||
*ppv = &This->IViewObjectEx_iface;
|
||||
}else if(IsEqualGUID(&IID_IViewObjectEx, riid)) {
|
||||
TRACE("(%p)->(IID_IViewObjectEx, %p)\n", This, ppv);
|
||||
else if(IsEqualGUID(&IID_IViewObjectEx, riid))
|
||||
*ppv = &This->IViewObjectEx_iface;
|
||||
}else if(IsEqualGUID(&IID_IOleWindow, riid)) {
|
||||
TRACE("(%p)->(IID_IOleWindow, %p)\n", This, ppv);
|
||||
else if(IsEqualGUID(&IID_IOleWindow, riid))
|
||||
*ppv = &This->IOleInPlaceActiveObject_iface;
|
||||
}else if(IsEqualGUID(&IID_IOleInPlaceObject, riid)) {
|
||||
TRACE("(%p)->(IID_IOleInPlaceObject, %p)\n", This, ppv);
|
||||
else if(IsEqualGUID(&IID_IOleInPlaceObject, riid))
|
||||
*ppv = &This->IOleInPlaceObjectWindowless_iface;
|
||||
}else if(IsEqualGUID(&IID_IOleInPlaceObjectWindowless, riid)) {
|
||||
TRACE("(%p)->(IID_IOleInPlaceObjectWindowless, %p)\n", This, ppv);
|
||||
else if(IsEqualGUID(&IID_IOleInPlaceObjectWindowless, riid))
|
||||
*ppv = &This->IOleInPlaceObjectWindowless_iface;
|
||||
}else if(IsEqualGUID(&IID_IServiceProvider, riid)) {
|
||||
TRACE("(%p)->(IID_IServiceProvider, %p)\n", This, ppv);
|
||||
else if(IsEqualGUID(&IID_IServiceProvider, riid))
|
||||
*ppv = &This->IServiceProvider_iface;
|
||||
}else if(IsEqualGUID(&IID_IOleCommandTarget, riid)) {
|
||||
TRACE("(%p)->(IID_IOleCommandTarget, %p)\n", This, ppv);
|
||||
else if(IsEqualGUID(&IID_IOleCommandTarget, riid))
|
||||
*ppv = &This->IOleCommandTarget_iface;
|
||||
}else if(IsEqualGUID(&IID_IOleControl, riid)) {
|
||||
TRACE("(%p)->(IID_IOleControl, %p)\n", This, ppv);
|
||||
else if(IsEqualGUID(&IID_IOleControl, riid))
|
||||
*ppv = &This->IOleControl_iface;
|
||||
}else if(IsEqualGUID(&IID_IHlinkTarget, riid)) {
|
||||
TRACE("(%p)->(IID_IHlinkTarget, %p)\n", This, ppv);
|
||||
else if(IsEqualGUID(&IID_IHlinkTarget, riid))
|
||||
*ppv = &This->IHlinkTarget_iface;
|
||||
}else if(IsEqualGUID(&IID_IConnectionPointContainer, riid)) {
|
||||
TRACE("(%p)->(IID_IConnectionPointContainer %p)\n", This, ppv);
|
||||
else if(IsEqualGUID(&IID_IConnectionPointContainer, riid))
|
||||
*ppv = &This->cp_container.IConnectionPointContainer_iface;
|
||||
}else if(IsEqualGUID(&IID_IPersistStreamInit, riid)) {
|
||||
TRACE("(%p)->(IID_IPersistStreamInit %p)\n", This, ppv);
|
||||
else if(IsEqualGUID(&IID_IPersistStreamInit, riid))
|
||||
*ppv = &This->IPersistStreamInit_iface;
|
||||
}else if(IsEqualGUID(&DIID_DispHTMLDocument, riid)) {
|
||||
TRACE("(%p)->(DIID_DispHTMLDocument %p)\n", This, ppv);
|
||||
else if(IsEqualGUID(&DIID_DispHTMLDocument, riid))
|
||||
*ppv = &This->IHTMLDocument2_iface;
|
||||
}else if(IsEqualGUID(&IID_ISupportErrorInfo, riid)) {
|
||||
TRACE("(%p)->(IID_ISupportErrorInfo %p)\n", This, ppv);
|
||||
else if(IsEqualGUID(&IID_ISupportErrorInfo, riid))
|
||||
*ppv = &This->ISupportErrorInfo_iface;
|
||||
}else if(IsEqualGUID(&IID_IPersistHistory, riid)) {
|
||||
TRACE("(%p)->(IID_IPersistHistory %p)\n", This, ppv);
|
||||
else if(IsEqualGUID(&IID_IPersistHistory, riid))
|
||||
*ppv = &This->IPersistHistory_iface;
|
||||
}else if(IsEqualGUID(&CLSID_CMarkup, riid)) {
|
||||
else if(IsEqualGUID(&IID_IObjectWithSite, riid))
|
||||
*ppv = &This->IObjectWithSite_iface;
|
||||
else if(IsEqualGUID(&IID_IOleContainer, riid))
|
||||
*ppv = &This->IOleContainer_iface;
|
||||
else if(IsEqualGUID(&IID_IObjectSafety, riid))
|
||||
*ppv = &This->IObjectSafety_iface;
|
||||
else if(IsEqualGUID(&IID_IProvideClassInfo, riid))
|
||||
*ppv = &This->IProvideClassInfo_iface;
|
||||
else if(IsEqualGUID(&CLSID_CMarkup, riid)) {
|
||||
FIXME("(%p)->(CLSID_CMarkup %p)\n", This, ppv);
|
||||
*ppv = NULL;
|
||||
}else if(IsEqualGUID(&IID_IRunnableObject, riid)) {
|
||||
|
@ -4253,18 +4228,6 @@ static BOOL htmldoc_qi(HTMLDocument *This, REFIID riid, void **ppv)
|
|||
}else if(IsEqualGUID(&IID_IStdMarshalInfo, riid)) {
|
||||
TRACE("(%p)->(IID_IStdMarshalInfo %p) returning NULL\n", This, ppv);
|
||||
*ppv = NULL;
|
||||
}else if(IsEqualGUID(&IID_IObjectWithSite, riid)) {
|
||||
TRACE("(%p)->(IID_IObjectWithSite %p)\n", This, ppv);
|
||||
*ppv = &This->IObjectWithSite_iface;
|
||||
}else if(IsEqualGUID(&IID_IOleContainer, riid)) {
|
||||
TRACE("(%p)->(IID_IOleContainer %p)\n", This, ppv);
|
||||
*ppv = &This->IOleContainer_iface;
|
||||
}else if(IsEqualGUID(&IID_IObjectSafety, riid)) {
|
||||
TRACE("(%p)->(IID_IObjectSafety %p)\n", This, ppv);
|
||||
*ppv = &This->IObjectSafety_iface;
|
||||
}else if(IsEqualGUID(&IID_IProvideClassInfo, riid)) {
|
||||
TRACE("(%p)->(IID_IProvideClassInfo, %p)\n", This, ppv);
|
||||
*ppv = &This->IProvideClassInfo_iface;
|
||||
}else {
|
||||
return FALSE;
|
||||
}
|
||||
|
@ -4327,15 +4290,15 @@ static HRESULT HTMLDocumentNode_QI(HTMLDOMNode *iface, REFIID riid, void **ppv)
|
|||
{
|
||||
HTMLDocumentNode *This = impl_from_HTMLDOMNode(iface);
|
||||
|
||||
TRACE("(%p)->(%s %p)\n", This, debugstr_mshtml_guid(riid), ppv);
|
||||
|
||||
if(htmldoc_qi(&This->basedoc, riid, ppv))
|
||||
return *ppv ? S_OK : E_NOINTERFACE;
|
||||
|
||||
if(IsEqualGUID(&IID_IInternetHostSecurityManager, riid)) {
|
||||
TRACE("(%p)->(IID_IInternetHostSecurityManager %p)\n", This, ppv);
|
||||
if(IsEqualGUID(&IID_IInternetHostSecurityManager, riid))
|
||||
*ppv = &This->IInternetHostSecurityManager_iface;
|
||||
}else {
|
||||
else
|
||||
return HTMLDOMNode_QI(&This->node, riid, ppv);
|
||||
}
|
||||
|
||||
IUnknown_AddRef((IUnknown*)*ppv);
|
||||
return S_OK;
|
||||
|
@ -4618,19 +4581,19 @@ static HRESULT WINAPI CustomDoc_QueryInterface(ICustomDoc *iface, REFIID riid, v
|
|||
{
|
||||
HTMLDocumentObj *This = impl_from_ICustomDoc(iface);
|
||||
|
||||
TRACE("(%p)->(%s %p)\n", This, debugstr_mshtml_guid(riid), ppv);
|
||||
|
||||
if(htmldoc_qi(&This->basedoc, riid, ppv))
|
||||
return *ppv ? S_OK : E_NOINTERFACE;
|
||||
|
||||
if(IsEqualGUID(&IID_ICustomDoc, riid)) {
|
||||
TRACE("(%p)->(IID_ICustomDoc %p)\n", This, ppv);
|
||||
*ppv = &This->ICustomDoc_iface;
|
||||
}else if(IsEqualGUID(&IID_ITargetContainer, riid)) {
|
||||
TRACE("(%p)->(IID_ITargetContainer %p)\n", This, ppv);
|
||||
*ppv = &This->ITargetContainer_iface;
|
||||
}else if(dispex_query_interface(&This->dispex, riid, ppv)) {
|
||||
return *ppv ? S_OK : E_NOINTERFACE;
|
||||
}else {
|
||||
FIXME("Unimplemented interface %s\n", debugstr_guid(riid));
|
||||
FIXME("Unimplemented interface %s\n", debugstr_mshtml_guid(riid));
|
||||
*ppv = NULL;
|
||||
return E_NOINTERFACE;
|
||||
}
|
||||
|
|
|
@ -531,3 +531,51 @@ const char *debugstr_variant(const VARIANT *v)
|
|||
return wine_dbg_sprintf("{vt %d}", V_VT(v));
|
||||
}
|
||||
}
|
||||
|
||||
const char *debugstr_mshtml_guid(const GUID *iid)
|
||||
{
|
||||
#define X(x) if(IsEqualGUID(iid, &x)) return #x
|
||||
X(DIID_DispHTMLDocument);
|
||||
X(IID_IConnectionPointContainer);
|
||||
X(IID_ICustomDoc);
|
||||
X(IID_IDispatch);
|
||||
X(IID_IDispatchEx);
|
||||
X(IID_IHlinkTarget);
|
||||
X(IID_IHTMLDocument);
|
||||
X(IID_IHTMLDocument2);
|
||||
X(IID_IHTMLDocument3);
|
||||
X(IID_IHTMLDocument4);
|
||||
X(IID_IHTMLDocument5);
|
||||
X(IID_IHTMLDocument6);
|
||||
X(IID_IHTMLDocument7);
|
||||
X(IID_IInternetHostSecurityManager);
|
||||
X(IID_IMonikerProp);
|
||||
X(IID_IObjectSafety);
|
||||
X(IID_IObjectWithSite);
|
||||
X(IID_IOleContainer);
|
||||
X(IID_IOleCommandTarget);
|
||||
X(IID_IOleControl);
|
||||
X(IID_IOleDocument);
|
||||
X(IID_IOleDocumentView);
|
||||
X(IID_IOleInPlaceActiveObject);
|
||||
X(IID_IOleInPlaceObject);
|
||||
X(IID_IOleInPlaceObjectWindowless);
|
||||
X(IID_IOleObject);
|
||||
X(IID_IOleWindow);
|
||||
X(IID_IPersist);
|
||||
X(IID_IPersistFile);
|
||||
X(IID_IPersistHistory);
|
||||
X(IID_IPersistMoniker);
|
||||
X(IID_IPersistStreamInit);
|
||||
X(IID_IProvideClassInfo);
|
||||
X(IID_IServiceProvider);
|
||||
X(IID_ISupportErrorInfo);
|
||||
X(IID_ITargetContainer);
|
||||
X(IID_IUnknown);
|
||||
X(IID_IViewObject);
|
||||
X(IID_IViewObject2);
|
||||
X(IID_IViewObjectEx);
|
||||
#undef X
|
||||
|
||||
return debugstr_guid(iid);
|
||||
}
|
||||
|
|
|
@ -1022,6 +1022,7 @@ HRESULT set_task_timer(HTMLInnerWindow*,DWORD,BOOL,IDispatch*,LONG*) DECLSPEC_HI
|
|||
HRESULT clear_task_timer(HTMLInnerWindow*,BOOL,DWORD) DECLSPEC_HIDDEN;
|
||||
|
||||
const char *debugstr_variant(const VARIANT*) DECLSPEC_HIDDEN;
|
||||
const char *debugstr_mshtml_guid(const GUID*) DECLSPEC_HIDDEN;
|
||||
|
||||
DEFINE_GUID(CLSID_AboutProtocol, 0x3050F406, 0x98B5, 0x11CF, 0xBB,0x82, 0x00,0xAA,0x00,0xBD,0xCE,0x0B);
|
||||
DEFINE_GUID(CLSID_JSProtocol, 0x3050F3B2, 0x98B5, 0x11CF, 0xBB,0x82, 0x00,0xAA,0x00,0xBD,0xCE,0x0B);
|
||||
|
|
Loading…
Reference in New Issue