winhelp[1/3]: we can reference to any page in HLPFILE_BrowsePage(). Perform similar change in HLPFILE_DoReadHlpFile() for the symmetry.
Kirill K. Smirnov
lich at math.spbu.ru
Fri Apr 25 10:38:30 CDT 2008
-------------- next part --------------
diff --git a/programs/winhelp/hlpfile.c b/programs/winhelp/hlpfile.c
index f5935a1..ca46d3a 100644
--- a/programs/winhelp/hlpfile.c
+++ b/programs/winhelp/hlpfile.c
@@ -327,7 +327,7 @@ static BOOL HLPFILE_DoReadHlpFile(HLPFIL
offset = (ref - 0x0C) & 0x3FFF;
}
- if (hlpfile->version <= 16 && index != old_index && index != 0)
+ if (hlpfile->version <= 16 && index != old_index && old_index != -1)
{
/* we jumped to the next block, adjust pointers */
ref -= 12;
@@ -1770,7 +1770,7 @@ BOOL HLPFILE_BrowsePage(HLPFILE_PAGE*
offset = (ref - 0x0C) & 0x3FFF;
}
- if (hlpfile->version <= 16 && index != old_index && index != 0)
+ if (hlpfile->version <= 16 && index != old_index && old_index != -1)
{
/* we jumped to the next block, adjust pointers */
ref -= 12;
More information about the wine-patches
mailing list