diff options
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)
{
|