winhlp32: Fix off-by-one error.

This commit is contained in:
Kirill K. Smirnov 2008-08-04 03:49:20 +04:00 committed by Alexandre Julliard
parent 7377856352
commit 52081393bc
1 changed files with 1 additions and 1 deletions

View File

@ -1639,7 +1639,7 @@ BOOL HLPFILE_BrowsePage(HLPFILE_PAGE* page, struct RtfData* rd,
case 0x20:
case 0x23:
if (!HLPFILE_BrowseParagraph(page, rd, buf, end, &parlen)) return FALSE;
if (relative >= index * 0x8000 + offs)
if (relative > index * 0x8000 + offs)
rd->char_pos_rel = rd->char_pos;
offs += parlen;
break;