Dmitry Timoshkov : hhctrl.ocx: Add a trace for the resulting CHM offset to string conversion.
Alexandre Julliard
julliard at winehq.org
Tue Jun 1 12:12:42 CDT 2010
Module: wine
Branch: master
Commit: a70e10d03dc40527418f6d96ccf9a74e0338c825
URL: http://source.winehq.org/git/wine.git/?a=commit;h=a70e10d03dc40527418f6d96ccf9a74e0338c825
Author: Dmitry Timoshkov <dmitry at codeweavers.com>
Date: Tue Jun 1 15:26:02 2010 +0900
hhctrl.ocx: Add a trace for the resulting CHM offset to string conversion.
---
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)
More information about the wine-cvs
mailing list