Module: wine Branch: master Commit: 68c45de6ae48743bf813c35b4e2c9c0fbb8891d5 URL: http://source.winehq.org/git/wine.git/?a=commit;h=68c45de6ae48743bf813c35b4e...
Author: Nikolay Sivov nsivov@codeweavers.com Date: Sun Jan 24 18:10:58 2016 +0300
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
---
dlls/dwrite/analyzer.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/dlls/dwrite/analyzer.c b/dlls/dwrite/analyzer.c index af034d1..a55b27f 100644 --- a/dlls/dwrite/analyzer.c +++ b/dlls/dwrite/analyzer.c @@ -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: