Module: wine Branch: stable Commit: dfcc043e0cc8c448087574bb2fa5bc908b7ca4c9 URL: http://source.winehq.org/git/wine.git/?a=commit;h=dfcc043e0cc8c448087574bb2f...
Author: Jean-Christophe Cardot wine@cardot.net Date: Sun Apr 10 22:06:08 2016 +0200
winhlp32: Add some trace calls.
Signed-off-by: Jean-Christophe Cardot wine@cardot.net Signed-off-by: Alexandre Julliard julliard@winehq.org (cherry picked from commit ae56f3d093c84b47248be6a66cebd58c0bb59668) Signed-off-by: Michael Stefaniuc mstefani@winehq.org
---
programs/winhlp32/hlpfile.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/programs/winhlp32/hlpfile.c b/programs/winhlp32/hlpfile.c index bc422d3..6a00235 100644 --- a/programs/winhlp32/hlpfile.c +++ b/programs/winhlp32/hlpfile.c @@ -705,6 +705,7 @@ static BOOL HLPFILE_RtfAddRawString(struct RtfData* rd, const char* str, size_t
static BOOL HLPFILE_RtfAddControl(struct RtfData* rd, const char* str) { + WINE_TRACE("%s\n", debugstr_a(str)); if (*str == '\' || *str == '{') rd->in_text = FALSE; else if (*str == '}') rd->in_text = TRUE; return HLPFILE_RtfAddRawString(rd, str, strlen(str)); @@ -1270,6 +1271,8 @@ static BOOL HLPFILE_BrowseParagraph(HLPFILE_PAGE* page, struct RtfData* rd, format = buf + 0x15; format_end = buf + GET_UINT(buf, 0x10);
+ WINE_TRACE("Record type (buf[0x14]) = 0x%x\n", buf[0x14]); + if (buf[0x14] == HLP_DISPLAY || buf[0x14] == HLP_TABLE) { fetch_long(&format); @@ -1452,13 +1455,13 @@ static BOOL HLPFILE_BrowseParagraph(HLPFILE_PAGE* page, struct RtfData* rd, /* else: null text, keep on storing attributes */ text += textsize + 1;
+ WINE_TRACE("format=%02x\n", *format); if (*format == 0xff) { format++; break; }
- WINE_TRACE("format=%02x\n", *format); switch (*format) { case 0x20: