Module: wine
Branch: master
Commit: 24172215311ddea6fd0fb395128cbfb37789274a
URL:
https://source.winehq.org/git/wine.git/?a=commit;h=24172215311ddea6fd0fb395…
Author: André Hentschel <nerv(a)dawncrow.de>
Date: Wed Mar 28 19:52:59 2018 +0200
usp10: Don't increment variable both in the loop header and body (clang).
Signed-off-by: André Hentschel <nerv(a)dawncrow.de>
Signed-off-by: Aric Stewart <aric(a)codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard(a)winehq.org>
---
dlls/usp10/shape.c | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/dlls/usp10/shape.c b/dlls/usp10/shape.c
index 4031386..3827000 100644
--- a/dlls/usp10/shape.c
+++ b/dlls/usp10/shape.c
@@ -1696,7 +1696,7 @@ static void ComposeConsonants(HDC hdc, WCHAR *pwOutChars, INT
*pcChars, const Co
int offset = 0;
int cWalk;
- for (cWalk = 0; cWalk < *pcChars; cWalk++)
+ for (cWalk = 0; cWalk < *pcChars; cWalk += 2)
{
for (i = 0; consonants[i].output!= 0x0; i++)
{
@@ -1721,7 +1721,6 @@ static void ComposeConsonants(HDC hdc, WCHAR *pwOutChars, INT
*pcChars, const Co
break;
}
}
- cWalk++;
}
}