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

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;