From 64ead391d8afb1342efaeb2a0cdc27ac19f1f7af Mon Sep 17 00:00:00 2001 From: Jacek Caban Date: Tue, 2 Apr 2013 17:39:57 +0200 Subject: [PATCH] ieframe: Improved debug traces. --- dlls/ieframe/dochost.c | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/dlls/ieframe/dochost.c b/dlls/ieframe/dochost.c index f95c4bd653c..7522c38fa54 100644 --- a/dlls/ieframe/dochost.c +++ b/dlls/ieframe/dochost.c @@ -363,6 +363,16 @@ static IStream *get_travellog_stream(DocHost *This) return stream; } +void dump_travellog(DocHost *This) +{ + unsigned i; + + for(i=0; i < This->travellog.length; i++) + TRACE("%d: %s %s\n", i, i == This->travellog.position ? "=>" : " ", debugstr_w(This->travellog.log[i].url)); + if(i == This->travellog.position) + TRACE("%d: =>\n", i); +} + static void update_travellog(DocHost *This) { travellog_entry_t *new_entry; @@ -407,6 +417,8 @@ static void update_travellog(DocHost *This) } if(This->travellog.position > This->travellog.length) This->travellog.length = This->travellog.position; + + dump_travellog(This); } void create_doc_view_hwnd(DocHost *This) -- 2.11.4.GIT