From: Bernhard Übelacker bernhardu@mailbox.org
Signed-off-by: Nikolay Sivov nsivov@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 0fab5b7142e..783312f68e8 100644 --- a/dlls/dwrite/analyzer.c +++ b/dlls/dwrite/analyzer.c @@ -1855,7 +1855,7 @@ static inline UINT32 get_cluster_length(UINT16 const *clustermap, UINT32 start, UINT16 g = clustermap[start]; UINT32 length = 1;
- while (start < text_len && clustermap[++start] == g) + while (start < (text_len - 1) && clustermap[++start] == g) length++; return length; }