diff options
author | pescuma <pescuma@c086bb3d-8645-0410-b8da-73a8550f86e7> | 2010-10-06 00:22:35 +0000 |
---|---|---|
committer | pescuma <pescuma@c086bb3d-8645-0410-b8da-73a8550f86e7> | 2010-10-06 00:22:35 +0000 |
commit | 305bcb9a42ed52e864ae69de3b2e4937047edc92 (patch) | |
tree | 77f29f0d4f7f8c2351280e596f86d6479b522ef2 /Plugins/utils/mir_icons.cpp | |
parent | e18d7a839140f01249f470ea40c531b7889c608d (diff) |
utils: sync with berliOS
git-svn-id: http://pescuma.googlecode.com/svn/trunk/Miranda@225 c086bb3d-8645-0410-b8da-73a8550f86e7
Diffstat (limited to 'Plugins/utils/mir_icons.cpp')
-rw-r--r-- | Plugins/utils/mir_icons.cpp | 8 |
1 files changed, 7 insertions, 1 deletions
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)
{
|