dwrite: Fix off by one issue in line breaking rule LB21a.

Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Nikolay Sivov 2016-01-24 18:10:58 +03:00 committed by Alexandre Julliard
parent 91df67df0c
commit 68c45de6ae
1 changed files with 1 additions and 1 deletions

View File

@ -524,7 +524,7 @@ static HRESULT analyze_linebreaks(const WCHAR *text, UINT32 count, DWRITE_LINE_B
break;
/* LB21a */
case b_HL:
if (i < count-2)
if (i < count-1)
switch (break_class[i+1])
{
case b_HY: