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

Alexandre Julliard julliard at wine.codeweavers.com
Mon Jan 25 09:27:58 CST 2016


Module: wine
Branch: master
Commit: 68c45de6ae48743bf813c35b4e2c9c0fbb8891d5
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=68c45de6ae48743bf813c35b4e2c9c0fbb8891d5

Author: Nikolay Sivov <nsivov at 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 at codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard at 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:




More information about the wine-cvs mailing list