Commit 3254a6b2 authored by Nikolay Sivov's avatar Nikolay Sivov Committed by Alexandre Julliard

dwrite: Fix invalid cluster metrics array index access.

parent 8f6fde50
......@@ -3264,7 +3264,7 @@ static HRESULT WINAPI dwritetextlayout_DetermineMinWidth(IDWriteTextLayout2 *ifa
/* Ignore trailing whitespace clusters, in case of single space range will
be reduced to empty range, or [start,start+1). */
while ((end - 1) >= start && This->clustermetrics[end-1].isWhitespace)
while (end > start && This->clustermetrics[end-1].isWhitespace)
end--;
/* check if cluster range exceeds last minimal width */
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment