Jacek Caban : urlmon: Improve debug traces.

Alexandre Julliard julliard at wine.codeweavers.com
Sun May 28 11:33:25 CDT 2006


Module: wine
Branch: refs/heads/master
Commit: 1c5074329660b5a1152c84ae996b71f4d56b61fd
URL:    http://source.winehq.org/git/?p=wine.git;a=commit;h=1c5074329660b5a1152c84ae996b71f4d56b61fd

Author: Jacek Caban <jacek at codeweavers.com>
Date:   Sat May 27 22:56:40 2006 +0200

urlmon: Improve debug traces.

---

 dlls/urlmon/binding.c |   46 ++++++++++++++++++++++++++++++++++++++++++++++
 1 files changed, 46 insertions(+), 0 deletions(-)

diff --git a/dlls/urlmon/binding.c b/dlls/urlmon/binding.c
index 6862be5..11b067c 100644
--- a/dlls/urlmon/binding.c
+++ b/dlls/urlmon/binding.c
@@ -198,6 +198,50 @@ static void on_progress(Binding *This, U
     PostMessageW(This->notif_hwnd, WM_MK_ONPROGRESS, 0, (LPARAM)data);
 }
 
+static void dump_BINDINFO(BINDINFO *bi)
+{
+    static const char *BINDINFOF_str[] = {
+        "#0",
+        "BINDINFOF_URLENCODESTGMEDDATA",
+        "BINDINFOF_URLENCODEDEXTRAINFO"
+    };
+
+    static const char *BINDVERB_str[] = {
+        "BINDVERB_GET",
+        "BINDVERB_POST",
+        "BINDVERB_PUT",
+        "BINDVERB_CUSTOM"
+    };
+
+    TRACE("\n"
+            "BINDINFO = {\n"
+            "    %ld, %s,\n"
+            "    {%ld, %p, %p},\n"
+            "    %s,\n"
+            "    %s,\n"
+            "    %s,\n"
+            "    %ld, %08lx, %ld, %ld\n"
+            "    {%ld %p %x},\n"
+            "    %s\n"
+            "    %p, %ld\n"
+            "}\n",
+
+            bi->cbSize, debugstr_w(bi->szExtraInfo),
+            bi->stgmedData.tymed, bi->stgmedData.u.hGlobal, bi->stgmedData.pUnkForRelease,
+            bi->grfBindInfoF > BINDINFOF_URLENCODEDEXTRAINFO
+                ? "unknown" : BINDINFOF_str[bi->grfBindInfoF],
+            bi->dwBindVerb > BINDVERB_CUSTOM
+                ? "unknown" : BINDVERB_str[bi->dwBindVerb],
+            debugstr_w(bi->szCustomVerb),
+            bi->cbStgmedData, bi->dwOptions, bi->dwOptionsFlags, bi->dwCodePage,
+            bi->securityAttributes.nLength,
+            bi->securityAttributes.lpSecurityDescriptor,
+            bi->securityAttributes.bInheritHandle,
+            debugstr_guid(&bi->iid),
+            bi->pUnk, bi->dwReserved
+            );
+}
+
 static HRESULT WINAPI HttpNegotiate_QueryInterface(IHttpNegotiate2 *iface,
                                                    REFIID riid, void **ppv)
 {
@@ -1013,6 +1057,8 @@ static HRESULT Binding_Create(LPCWSTR ur
         return hres;
     }
 
+    dump_BINDINFO(&ret->bindinfo);
+
     ret->bindf |= BINDF_FROMURLMON;
 
     len = strlenW(url)+1;




More information about the wine-cvs mailing list