Commit dfcc043e authored by Jean-Christophe Cardot's avatar Jean-Christophe Cardot Committed by Michael Stefaniuc

winhlp32: Add some trace calls.

Signed-off-by: 's avatarJean-Christophe Cardot <wine@cardot.net> Signed-off-by: 's avatarAlexandre Julliard <julliard@winehq.org> (cherry picked from commit ae56f3d0) Signed-off-by: 's avatarMichael Stefaniuc <mstefani@winehq.org>
parent 51e25fb8
...@@ -705,6 +705,7 @@ static BOOL HLPFILE_RtfAddRawString(struct RtfData* rd, const char* str, size_t ...@@ -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) static BOOL HLPFILE_RtfAddControl(struct RtfData* rd, const char* str)
{ {
WINE_TRACE("%s\n", debugstr_a(str));
if (*str == '\\' || *str == '{') rd->in_text = FALSE; if (*str == '\\' || *str == '{') rd->in_text = FALSE;
else if (*str == '}') rd->in_text = TRUE; else if (*str == '}') rd->in_text = TRUE;
return HLPFILE_RtfAddRawString(rd, str, strlen(str)); return HLPFILE_RtfAddRawString(rd, str, strlen(str));
...@@ -1270,6 +1271,8 @@ static BOOL HLPFILE_BrowseParagraph(HLPFILE_PAGE* page, struct RtfData* rd, ...@@ -1270,6 +1271,8 @@ static BOOL HLPFILE_BrowseParagraph(HLPFILE_PAGE* page, struct RtfData* rd,
format = buf + 0x15; format = buf + 0x15;
format_end = buf + GET_UINT(buf, 0x10); 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) if (buf[0x14] == HLP_DISPLAY || buf[0x14] == HLP_TABLE)
{ {
fetch_long(&format); fetch_long(&format);
...@@ -1452,13 +1455,13 @@ static BOOL HLPFILE_BrowseParagraph(HLPFILE_PAGE* page, struct RtfData* rd, ...@@ -1452,13 +1455,13 @@ static BOOL HLPFILE_BrowseParagraph(HLPFILE_PAGE* page, struct RtfData* rd,
/* else: null text, keep on storing attributes */ /* else: null text, keep on storing attributes */
text += textsize + 1; text += textsize + 1;
WINE_TRACE("format=%02x\n", *format);
if (*format == 0xff) if (*format == 0xff)
{ {
format++; format++;
break; break;
} }
WINE_TRACE("format=%02x\n", *format);
switch (*format) switch (*format)
{ {
case 0x20: case 0x20:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment