summaryrefslogtreecommitdiff
path: root/plugins/IEView/src
diff options
context:
space:
mode:
authorGeorge Hazan <ghazan@miranda.im>2019-04-13 00:11:59 +0300
committerGeorge Hazan <ghazan@miranda.im>2019-04-13 00:11:59 +0300
commitfee3a74e7429552ebbfe7ae9c14a4f6c25156fb6 (patch)
treee05460a85875a1c5f59b6244ac0e412095ac71b9 /plugins/IEView/src
parent48de7daae4384c86681f89255b63631cb832097c (diff)
CMPluginBase::addImgListIcon: new helper to safely add an icolib icon to HIMAGELIST
Diffstat (limited to 'plugins/IEView/src')
-rw-r--r--plugins/IEView/src/Options.cpp6
1 files changed, 1 insertions, 5 deletions
diff --git a/plugins/IEView/src/Options.cpp b/plugins/IEView/src/Options.cpp
index b4dc6a1f85..e5bcbb89f8 100644
--- a/plugins/IEView/src/Options.cpp
+++ b/plugins/IEView/src/Options.cpp
@@ -287,11 +287,7 @@ static void RefreshProtoIcons()
ImageList_AddIcon(hProtocolImageList, hIcon);
DestroyIcon(hIcon);
}
- else {
- hIcon = (HICON)Skin_LoadIcon(SKINICON_OTHER_MIRANDA);
- ImageList_AddIcon(hProtocolImageList, hIcon);
- IcoLib_ReleaseIcon(hIcon);
- }
+ else ImageList_AddSkinIcon(hProtocolImageList, SKINICON_OTHER_MIRANDA);
}
}