mshtml: Use debugstr_mshtml_guid in a few more places.
This commit is contained in:
parent
9080329e4e
commit
6ebe1c60e2
|
@ -56,7 +56,7 @@ static HRESULT WINAPI HTMLStorage_QueryInterface(IHTMLStorage *iface, REFIID rii
|
|||
return *ppv ? S_OK : E_NOINTERFACE;
|
||||
}else {
|
||||
*ppv = NULL;
|
||||
WARN("(%p)->(%s %p)\n", This, debugstr_guid(riid), ppv);
|
||||
WARN("(%p)->(%s %p)\n", This, debugstr_mshtml_guid(riid), ppv);
|
||||
return E_NOINTERFACE;
|
||||
}
|
||||
|
||||
|
|
|
@ -68,17 +68,17 @@ static HRESULT WINAPI HTMLStyleSheetRulesCollection_QueryInterface(IHTMLStyleShe
|
|||
{
|
||||
HTMLStyleSheetRulesCollection *This = impl_from_IHTMLStyleSheetRulesCollection(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->IHTMLStyleSheetRulesCollection_iface;
|
||||
}else if(IsEqualGUID(&IID_IHTMLStyleSheetRulesCollection, riid)) {
|
||||
TRACE("(%p)->(IID_IHTMLStyleSheetRulesCollection %p)\n", This, ppv);
|
||||
*ppv = &This->IHTMLStyleSheetRulesCollection_iface;
|
||||
}else if(dispex_query_interface(&This->dispex, riid, ppv)) {
|
||||
return *ppv ? S_OK : E_NOINTERFACE;
|
||||
}else {
|
||||
*ppv = NULL;
|
||||
FIXME("(%p)->(%s %p)\n", This, debugstr_guid(riid), ppv);
|
||||
FIXME("(%p)->(%s %p)\n", This, debugstr_mshtml_guid(riid), ppv);
|
||||
return E_NOINTERFACE;
|
||||
}
|
||||
|
||||
|
@ -222,30 +222,26 @@ static HRESULT WINAPI HTMLStyleSheetsCollection_QueryInterface(IHTMLStyleSheetsC
|
|||
{
|
||||
HTMLStyleSheetsCollection *This = impl_from_IHTMLStyleSheetsCollection(iface);
|
||||
|
||||
*ppv = NULL;
|
||||
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->IHTMLStyleSheetsCollection_iface;
|
||||
}else if(IsEqualGUID(&IID_IDispatch, riid)) {
|
||||
TRACE("(%p)->(IID_IDispatch %p)\n", This, ppv);
|
||||
*ppv = &This->IHTMLStyleSheetsCollection_iface;
|
||||
}else if(IsEqualGUID(&IID_IHTMLStyleSheetsCollection, riid)) {
|
||||
TRACE("(%p)->(IID_IHTMLStyleSheetsCollection %p)\n", This, ppv);
|
||||
*ppv = &This->IHTMLStyleSheetsCollection_iface;
|
||||
}else if(dispex_query_interface(&This->dispex, riid, ppv)) {
|
||||
return *ppv ? S_OK : E_NOINTERFACE;
|
||||
}else {
|
||||
*ppv = NULL;
|
||||
WARN("unsupported %s\n", debugstr_mshtml_guid(riid));
|
||||
return E_NOINTERFACE;
|
||||
}
|
||||
|
||||
if(*ppv) {
|
||||
IUnknown_AddRef((IUnknown*)*ppv);
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
WARN("unsupported %s\n", debugstr_guid(riid));
|
||||
return E_NOINTERFACE;
|
||||
}
|
||||
|
||||
static ULONG WINAPI HTMLStyleSheetsCollection_AddRef(IHTMLStyleSheetsCollection *iface)
|
||||
{
|
||||
HTMLStyleSheetsCollection *This = impl_from_IHTMLStyleSheetsCollection(iface);
|
||||
|
@ -415,30 +411,26 @@ static HRESULT WINAPI HTMLStyleSheet_QueryInterface(IHTMLStyleSheet *iface, REFI
|
|||
{
|
||||
HTMLStyleSheet *This = impl_from_IHTMLStyleSheet(iface);
|
||||
|
||||
*ppv = NULL;
|
||||
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->IHTMLStyleSheet_iface;
|
||||
}else if(IsEqualGUID(&IID_IDispatch, riid)) {
|
||||
TRACE("(%p)->(IID_IDispatch %p)\n", This, ppv);
|
||||
*ppv = &This->IHTMLStyleSheet_iface;
|
||||
}else if(IsEqualGUID(&IID_IHTMLStyleSheet, riid)) {
|
||||
TRACE("(%p)->(IID_IHTMLStyleSheet %p)\n", This, ppv);
|
||||
*ppv = &This->IHTMLStyleSheet_iface;
|
||||
}else if(dispex_query_interface(&This->dispex, riid, ppv)) {
|
||||
return *ppv ? S_OK : E_NOINTERFACE;
|
||||
}else {
|
||||
*ppv = NULL;
|
||||
WARN("unsupported %s\n", debugstr_mshtml_guid(riid));
|
||||
return E_NOINTERFACE;
|
||||
}
|
||||
|
||||
if(*ppv) {
|
||||
IUnknown_AddRef((IUnknown*)*ppv);
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
WARN("unsupported %s\n", debugstr_guid(riid));
|
||||
return E_NOINTERFACE;
|
||||
}
|
||||
|
||||
static ULONG WINAPI HTMLStyleSheet_AddRef(IHTMLStyleSheet *iface)
|
||||
{
|
||||
HTMLStyleSheet *This = impl_from_IHTMLStyleSheet(iface);
|
||||
|
|
|
@ -141,61 +141,47 @@ static HRESULT WINAPI HTMLWindow2_QueryInterface(IHTMLWindow2 *iface, REFIID rii
|
|||
{
|
||||
HTMLWindow *This = impl_from_IHTMLWindow2(iface);
|
||||
|
||||
*ppv = NULL;
|
||||
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->IHTMLWindow2_iface;
|
||||
}else if(IsEqualGUID(&IID_IDispatch, riid)) {
|
||||
TRACE("(%p)->(IID_IDispatch %p)\n", This, ppv);
|
||||
*ppv = &This->IHTMLWindow2_iface;
|
||||
}else if(IsEqualGUID(&IID_IDispatchEx, riid)) {
|
||||
TRACE("(%p)->(IID_IDispatchEx %p)\n", This, ppv);
|
||||
*ppv = &This->IDispatchEx_iface;
|
||||
}else if(IsEqualGUID(&IID_IHTMLFramesCollection2, riid)) {
|
||||
TRACE("(%p)->(IID_IHTMLFramesCollection2 %p)\n", This, ppv);
|
||||
*ppv = &This->IHTMLWindow2_iface;
|
||||
}else if(IsEqualGUID(&IID_IHTMLWindow2, riid)) {
|
||||
TRACE("(%p)->(IID_IHTMLWindow2 %p)\n", This, ppv);
|
||||
*ppv = &This->IHTMLWindow2_iface;
|
||||
}else if(IsEqualGUID(&IID_IHTMLWindow3, riid)) {
|
||||
TRACE("(%p)->(IID_IHTMLWindow3 %p)\n", This, ppv);
|
||||
*ppv = &This->IHTMLWindow3_iface;
|
||||
}else if(IsEqualGUID(&IID_IHTMLWindow4, riid)) {
|
||||
TRACE("(%p)->(IID_IHTMLWindow4 %p)\n", This, ppv);
|
||||
*ppv = &This->IHTMLWindow4_iface;
|
||||
}else if(IsEqualGUID(&IID_IHTMLWindow5, riid)) {
|
||||
TRACE("(%p)->(IID_IHTMLWindow5 %p)\n", This, ppv);
|
||||
*ppv = &This->IHTMLWindow5_iface;
|
||||
}else if(IsEqualGUID(&IID_IHTMLWindow6, riid)) {
|
||||
TRACE("(%p)->(IID_IHTMLWindow6 %p)\n", This, ppv);
|
||||
*ppv = &This->IHTMLWindow6_iface;
|
||||
}else if(IsEqualGUID(&IID_IHTMLPrivateWindow, riid)) {
|
||||
TRACE("(%p)->(IID_IHTMLPrivateWindow %p)\n", This, ppv);
|
||||
*ppv = &This->IHTMLPrivateWindow_iface;
|
||||
}else if(IsEqualGUID(&IID_IServiceProvider, riid)) {
|
||||
TRACE("(%p)->(IID_IServiceProvider %p)\n", This, ppv);
|
||||
*ppv = &This->IServiceProvider_iface;
|
||||
}else if(IsEqualGUID(&IID_ITravelLogClient, riid)) {
|
||||
TRACE("(%p)->(IID_ITravelLogClient %p)\n", This, ppv);
|
||||
*ppv = &This->ITravelLogClient_iface;
|
||||
}else if(IsEqualGUID(&IID_IObjectIdentity, riid)) {
|
||||
TRACE("(%p)->(IID_IObjectIdentity %p)\n", This, ppv);
|
||||
*ppv = &This->IObjectIdentity_iface;
|
||||
}else if(dispex_query_interface(&This->inner_window->dispex, riid, ppv)) {
|
||||
assert(!*ppv);
|
||||
return E_NOINTERFACE;
|
||||
}else {
|
||||
*ppv = NULL;
|
||||
WARN("(%p)->(%s %p)\n", This, debugstr_mshtml_guid(riid), ppv);
|
||||
return E_NOINTERFACE;
|
||||
}
|
||||
|
||||
if(*ppv) {
|
||||
IUnknown_AddRef((IUnknown*)*ppv);
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
WARN("(%p)->(%s %p)\n", This, debugstr_guid(riid), ppv);
|
||||
return E_NOINTERFACE;
|
||||
}
|
||||
|
||||
static ULONG WINAPI HTMLWindow2_AddRef(IHTMLWindow2 *iface)
|
||||
{
|
||||
HTMLWindow *This = impl_from_IHTMLWindow2(iface);
|
||||
|
@ -2407,8 +2393,7 @@ static HRESULT WINAPI WindowDispEx_GetIDsOfNames(IDispatchEx *iface, REFIID riid
|
|||
UINT i;
|
||||
HRESULT hres;
|
||||
|
||||
WARN("(%p)->(%s %p %u %u %p)\n", This, debugstr_guid(riid), rgszNames, cNames,
|
||||
lcid, rgDispId);
|
||||
WARN("(%p)->(%s %p %u %u %p)\n", This, debugstr_guid(riid), rgszNames, cNames, lcid, rgDispId);
|
||||
|
||||
for(i=0; i < cNames; i++) {
|
||||
/* We shouldn't use script's IDispatchEx here, so we shouldn't use GetDispID */
|
||||
|
@ -2686,7 +2671,7 @@ static HRESULT WINAPI HTMLWindowSP_QueryService(IServiceProvider *iface, REFGUID
|
|||
return IHTMLWindow2_QueryInterface(&This->IHTMLWindow2_iface, riid, ppv);
|
||||
}
|
||||
|
||||
TRACE("(%p)->(%s %s %p)\n", This, debugstr_guid(guidService), debugstr_guid(riid), ppv);
|
||||
TRACE("(%p)->(%s %s %p)\n", This, debugstr_mshtml_guid(guidService), debugstr_mshtml_guid(riid), ppv);
|
||||
|
||||
if(!This->outer_window->doc_obj)
|
||||
return E_NOINTERFACE;
|
||||
|
|
|
@ -573,9 +573,11 @@ const char *debugstr_mshtml_guid(const GUID *iid)
|
|||
X(IID_IHTMLElementCollection);
|
||||
X(IID_IHTMLEventObj);
|
||||
X(IID_IHTMLFiltersCollection);
|
||||
X(IID_IHTMLFramesCollection2);
|
||||
X(IID_IHTMLImageElementFactory);
|
||||
X(IID_IHTMLLocation);
|
||||
X(IID_IHTMLOptionElementFactory);
|
||||
X(IID_IHTMLPrivateWindow);
|
||||
X(IID_IHTMLRect);
|
||||
X(IID_IHTMLScreen);
|
||||
X(IID_IHTMLStorage);
|
||||
|
@ -585,9 +587,18 @@ const char *debugstr_mshtml_guid(const GUID *iid)
|
|||
X(IID_IHTMLStyle4);
|
||||
X(IID_IHTMLStyle5);
|
||||
X(IID_IHTMLStyle6);
|
||||
X(IID_IHTMLStyleSheet);
|
||||
X(IID_IHTMLStyleSheetRulesCollection);
|
||||
X(IID_IHTMLStyleSheetsCollection);
|
||||
X(IID_IHTMLWindow2);
|
||||
X(IID_IHTMLWindow3);
|
||||
X(IID_IHTMLWindow4);
|
||||
X(IID_IHTMLWindow5);
|
||||
X(IID_IHTMLWindow6);
|
||||
X(IID_IHtmlLoadOptions);
|
||||
X(IID_IInternetHostSecurityManager);
|
||||
X(IID_IMonikerProp);
|
||||
X(IID_IObjectIdentity);
|
||||
X(IID_IObjectSafety);
|
||||
X(IID_IObjectWithSite);
|
||||
X(IID_IOleContainer);
|
||||
|
@ -613,6 +624,7 @@ const char *debugstr_mshtml_guid(const GUID *iid)
|
|||
X(IID_IServiceProvider);
|
||||
X(IID_ISupportErrorInfo);
|
||||
X(IID_ITargetContainer);
|
||||
X(IID_ITravelLogClient);
|
||||
X(IID_IUnknown);
|
||||
X(IID_IViewObject);
|
||||
X(IID_IViewObject2);
|
||||
|
|
Loading…
Reference in New Issue