From 5b55ebfcc6a6835c17b90bebcf4395b82b937d04 Mon Sep 17 00:00:00 2001 From: George Hazan Date: Fri, 20 May 2016 10:40:38 +0000 Subject: fixes #1242 (Clist_modern's cache changes related bugs) git-svn-id: http://svn.miranda-ng.org/main/trunk@16857 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- plugins/Clist_modern/src/modern_clc.cpp | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'plugins') diff --git a/plugins/Clist_modern/src/modern_clc.cpp b/plugins/Clist_modern/src/modern_clc.cpp index 36462ff35a..5cf0d6f8ba 100644 --- a/plugins/Clist_modern/src/modern_clc.cpp +++ b/plugins/Clist_modern/src/modern_clc.cpp @@ -67,9 +67,10 @@ static int clcHookProtoAck(WPARAM, LPARAM lParam) static int clcHookIconsChanged(WPARAM, LPARAM) { - int i; - if (MirandaExiting()) return 0; - for (i = 0; i < _countof(g_pAvatarOverlayIcons); i++) { + if (MirandaExiting()) + return 0; + + for (int i = 0; i < _countof(g_pAvatarOverlayIcons); i++) { g_pAvatarOverlayIcons[i].listID = -1; g_pStatusOverlayIcons[i].listID = -1; } @@ -78,7 +79,7 @@ static int clcHookIconsChanged(WPARAM, LPARAM) ImageList_Destroy(hAvatarOverlays); hAvatarOverlays = ImageList_Create(16, 16, ILC_MASK | ILC_COLOR32, _countof(g_pAvatarOverlayIcons) * 2, 1); - for (i = 0; i < _countof(g_pAvatarOverlayIcons); i++) { + for (int i = 0; i < _countof(g_pAvatarOverlayIcons); i++) { HICON hIcon = IcoLib_GetIcon(g_pAvatarOverlayIcons[i].name); g_pAvatarOverlayIcons[i].listID = ImageList_AddIcon(hAvatarOverlays, hIcon); IcoLib_Release(g_pAvatarOverlayIcons[i].name); -- cgit v1.2.3