Jacek Caban : mshtml: Improve debug traces.
Alexandre Julliard
julliard at winehq.org
Wed Dec 5 06:56:38 CST 2007
Module: wine
Branch: master
Commit: 92223c19f92384256035314062c67e175b0c3f4b
URL: http://source.winehq.org/git/wine.git/?a=commit;h=92223c19f92384256035314062c67e175b0c3f4b
Author: Jacek Caban <jacek at codeweavers.com>
Date: Wed Dec 5 02:05:02 2007 +0100
mshtml: Improve debug traces.
---
dlls/mshtml/conpoint.c | 21 +++++++++++++++++++--
1 files changed, 19 insertions(+), 2 deletions(-)
diff --git a/dlls/mshtml/conpoint.c b/dlls/mshtml/conpoint.c
index a8e3d56..8a8be4c 100644
--- a/dlls/mshtml/conpoint.c
+++ b/dlls/mshtml/conpoint.c
@@ -36,6 +36,23 @@ WINE_DEFAULT_DEBUG_CHANNEL(mshtml);
#define CONPOINT(x) ((IConnectionPoint*) &(x)->lpConnectionPointVtbl);
+static const char *debugstr_cp_guid(REFIID riid)
+{
+#define X(x) \
+ if(IsEqualGUID(riid, &x)) \
+ return #x
+
+ X(IID_IPropertyNotifySink);
+ X(DIID_HTMLDocumentEvents);
+ X(DIID_HTMLDocumentEvents2);
+ X(DIID_HTMLTableEvents);
+ X(DIID_HTMLTextContainerEvents);
+
+#undef X
+
+ return debugstr_guid(riid);
+}
+
void call_property_onchanged(ConnectionPoint *This, DISPID dispid)
{
DWORD i;
@@ -244,7 +261,7 @@ static HRESULT WINAPI ConnectionPointContainer_FindConnectionPoint(IConnectionPo
ConnectionPointContainer *This = CONPTCONT_THIS(iface);
ConnectionPoint *iter;
- TRACE("(%p)->(%s %p)\n", This, debugstr_guid(riid), ppCP);
+ TRACE("(%p)->(%s %p)\n", This, debugstr_cp_guid(riid), ppCP);
*ppCP = NULL;
@@ -258,7 +275,7 @@ static HRESULT WINAPI ConnectionPointContainer_FindConnectionPoint(IConnectionPo
return S_OK;
}
- FIXME("unsupported riid %s\n", debugstr_guid(riid));
+ FIXME("unsupported riid %s\n", debugstr_cp_guid(riid));
return CONNECT_E_NOCONNECTION;
}
More information about the wine-cvs
mailing list