dwrite: Fix invalid cluster metrics array index access.

Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Nikolay Sivov 2016-01-27 15:57:47 +03:00 committed by Alexandre Julliard
parent 8f6fde50e8
commit 3254a6b2d6
1 changed files with 1 additions and 1 deletions

View File

@ -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 */