summaryrefslogtreecommitdiff
path: root/plugins
diff options
context:
space:
mode:
authorGeorge Hazan <george.hazan@gmail.com>2016-05-20 10:40:38 +0000
committerGeorge Hazan <george.hazan@gmail.com>2016-05-20 10:40:38 +0000
commit5b55ebfcc6a6835c17b90bebcf4395b82b937d04 (patch)
tree3c9ec25667ed5a8df32e472c26d94995bbe2c4e7 /plugins
parentc44d4835faed14e31a1e531537c30398ce9e7e0c (diff)
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
Diffstat (limited to 'plugins')
-rw-r--r--plugins/Clist_modern/src/modern_clc.cpp9
1 files changed, 5 insertions, 4 deletions
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);