=?UTF-8?Q?Andr=C3=A9=20Hentschel=20?=: usp10: Don' t increment variable both in the loop header and body (clang).
Alexandre Julliard
julliard at winehq.org
Fri Mar 30 12:32:35 CDT 2018
Module: wine
Branch: master
Commit: 24172215311ddea6fd0fb395128cbfb37789274a
URL: https://source.winehq.org/git/wine.git/?a=commit;h=24172215311ddea6fd0fb395128cbfb37789274a
Author: André Hentschel <nerv at 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 at dawncrow.de>
Signed-off-by: Aric Stewart <aric at codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard at 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++;
}
}
More information about the wine-cvs
mailing list