winhelp: We can reference any page in HLPFILE_BrowsePage(). Perform similar change in HLPFILE_DoReadHlpFile() for the symmetry.

This commit is contained in:
Kirill K. Smirnov 2008-04-25 19:38:30 +04:00 committed by Alexandre Julliard
parent 0cb73cef0b
commit 5744fb45cf

View file

@ -327,7 +327,7 @@ static BOOL HLPFILE_DoReadHlpFile(HLPFILE *hlpfile, LPCSTR lpszPath)
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* page, struct RtfData* rd)
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;