From 52081393bc897b56e2932b5718c9ef49570e8c15 Mon Sep 17 00:00:00 2001 From: "Kirill K. Smirnov" Date: Mon, 4 Aug 2008 03:49:20 +0400 Subject: [PATCH] winhlp32: Fix off-by-one error. --- programs/winhlp32/hlpfile.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/programs/winhlp32/hlpfile.c b/programs/winhlp32/hlpfile.c index 870bac742c3..7f1a931c12f 100644 --- a/programs/winhlp32/hlpfile.c +++ b/programs/winhlp32/hlpfile.c @@ -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; -- 2.11.4.GIT