Dmitry Timoshkov : oleaut32: Simplify 'for' loop.
Alexandre Julliard
julliard at wine.codeweavers.com
Mon Nov 30 09:54:02 CST 2015
Module: wine
Branch: master
Commit: 1616f0ede9d55cfa7a57a6968b4351bc35b40e9e
URL: http://source.winehq.org/git/wine.git/?a=commit;h=1616f0ede9d55cfa7a57a6968b4351bc35b40e9e
Author: Dmitry Timoshkov <dmitry at baikal.ru>
Date: Mon Nov 30 12:26:33 2015 +0800
oleaut32: Simplify 'for' loop.
Variable 'i' is not used neither in the loop nor at its end.
Signed-off-by: Dmitry Timoshkov <dmitry at baikal.ru>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>
---
dlls/oleaut32/typelib.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/dlls/oleaut32/typelib.c b/dlls/oleaut32/typelib.c
index 0891098..0a83b79 100644
--- a/dlls/oleaut32/typelib.c
+++ b/dlls/oleaut32/typelib.c
@@ -4486,9 +4486,9 @@ static ITypeLib2* ITypeLib2_Constructor_SLTG(LPVOID pLib, DWORD dwTLBLength)
/* We'll set up a ptr to the main library block, which is the last one. */
- for(pBlk = pFirstBlk, order = pHeader->first_blk - 1, i = 0;
+ for(pBlk = pFirstBlk, order = pHeader->first_blk - 1;
pBlkEntry[order].next != 0;
- order = pBlkEntry[order].next - 1, i++) {
+ order = pBlkEntry[order].next - 1) {
pBlk = (char*)pBlk + pBlkEntry[order].len;
}
pLibBlk = pBlk;
More information about the wine-cvs
mailing list