From bfaeb42b09b79eb87e87c285d53ccd4b9ef46e8e Mon Sep 17 00:00:00 2001 From: "Kirill K. Smirnov" Date: Fri, 25 Apr 2008 19:41:44 +0400 Subject: [PATCH] winhelp: Shift by 6 not 4 in case of old 3.0 file. This necessary piece of code was lost. Restore it. --- programs/winhelp/hlpfile.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/programs/winhelp/hlpfile.c b/programs/winhelp/hlpfile.c index ca46d3a00ca..15ca70ff1f7 100644 --- a/programs/winhelp/hlpfile.c +++ b/programs/winhelp/hlpfile.c @@ -1267,7 +1267,10 @@ static BOOL HLPFILE_BrowseParagraph(HLPFILE_PAGE* page, struct RtfData* rd, BYTE format += 5; } else nc++; - format += 4; + if (buf[0x14] == 0x01) + format += 6; + else + format += 4; bits = GET_USHORT(format, 0); format += 2; if (bits & 0x0001) fetch_long(&format); if (bits & 0x0002)