Kirill K. Smirnov : winhelp: Shift by 6 not 4 in case of old 3.0 file.
Alexandre Julliard
julliard at winehq.org
Mon Apr 28 08:01:21 CDT 2008
Module: wine
Branch: master
Commit: bfaeb42b09b79eb87e87c285d53ccd4b9ef46e8e
URL: http://source.winehq.org/git/wine.git/?a=commit;h=bfaeb42b09b79eb87e87c285d53ccd4b9ef46e8e
Author: Kirill K. Smirnov <lich at math.spbu.ru>
Date: Fri Apr 25 19:41:44 2008 +0400
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 files changed, 4 insertions(+), 1 deletions(-)
diff --git a/programs/winhelp/hlpfile.c b/programs/winhelp/hlpfile.c
index ca46d3a..15ca70f 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)
More information about the wine-cvs
mailing list