From 305bcb9a42ed52e864ae69de3b2e4937047edc92 Mon Sep 17 00:00:00 2001 From: pescuma Date: Wed, 6 Oct 2010 00:22:35 +0000 Subject: utils: sync with berliOS git-svn-id: http://pescuma.googlecode.com/svn/trunk/Miranda@225 c086bb3d-8645-0410-b8da-73a8550f86e7 --- Plugins/utils/mir_icons.cpp | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'Plugins/utils/mir_icons.cpp') diff --git a/Plugins/utils/mir_icons.cpp b/Plugins/utils/mir_icons.cpp index f55d1c2..1fb2c0e 100644 --- a/Plugins/utils/mir_icons.cpp +++ b/Plugins/utils/mir_icons.cpp @@ -40,11 +40,17 @@ HICON IcoLib_LoadIcon(const char *iconName, BOOL copy) if (copy && hIcon != NULL) { hIcon = CopyIcon(hIcon); - CallService(MS_SKIN2_RELEASEICON, 0, (LPARAM) iconName); + CallService(MS_SKIN2_RELEASEICON, (WPARAM) hIcon, 0); } return hIcon; } +void IcoLib_ReleaseIcon(const char *iconName) +{ + if (ServiceExists(MS_SKIN2_RELEASEICON)) + CallService(MS_SKIN2_RELEASEICON, 0, (LPARAM) iconName); +} + void IcoLib_ReleaseIcon(HICON hIcon) { -- cgit v1.2.3