winhelp [2/3]: Shift by 6 not 4 in case of old 3.0 file.
Kirill K. Smirnov
lich at math.spbu.ru
Fri Apr 25 10:41:44 CDT 2008
This necessary piece of code was lost. Restore it.
-------------- next part --------------
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(HLPF
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-patches
mailing list