hhctrl.ocx: Add a trace for the resulting CHM offset to string conversion.
Dmitry Timoshkov
dmitry at codeweavers.com
Tue Jun 1 01:26:02 CDT 2010
---
dlls/hhctrl.ocx/chm.c | 6 +++++-
1 files changed, 5 insertions(+), 1 deletions(-)
diff --git a/dlls/hhctrl.ocx/chm.c b/dlls/hhctrl.ocx/chm.c
index cf5b8bf..4c85bd9 100644
--- a/dlls/hhctrl.ocx/chm.c
+++ b/dlls/hhctrl.ocx/chm.c
@@ -34,6 +34,8 @@ WINE_DEFAULT_DEBUG_CHANNEL(htmlhelp);
/* Reads a string from the #STRINGS section in the CHM file */
static LPCSTR GetChmString(CHMInfo *chm, DWORD offset)
{
+ LPCSTR str;
+
if(!chm->strings_stream)
return NULL;
@@ -72,7 +74,9 @@ static LPCSTR GetChmString(CHMInfo *chm, DWORD offset)
}
}
- return chm->strings[offset >> BLOCK_BITS] + (offset & BLOCK_MASK);
+ str = chm->strings[offset >> BLOCK_BITS] + (offset & BLOCK_MASK);
+ TRACE("offset %#x => %s\n", offset, debugstr_a(str));
+ return str;
}
static BOOL ReadChmSystem(CHMInfo *chm)
--
1.7.0.2
More information about the wine-patches
mailing list