[PATCH 2/6] dwrite: Fix off by one issue in line breaking rule LB21a
Nikolay Sivov
nsivov at codeweavers.com
Sun Jan 24 09:10:58 CST 2016
Signed-off-by: Nikolay Sivov <nsivov at codeweavers.com>
---
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:
--
2.7.0.rc3
More information about the wine-patches
mailing list