summaryrefslogtreecommitdiff
path: root/src/mir_core/src/icons.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/mir_core/src/icons.cpp')
-rw-r--r--src/mir_core/src/icons.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mir_core/src/icons.cpp b/src/mir_core/src/icons.cpp
index fe3bb37319..cd85f31b06 100644
--- a/src/mir_core/src/icons.cpp
+++ b/src/mir_core/src/icons.cpp
@@ -46,7 +46,7 @@ MIR_CORE_DLL(void) Icon_Register(HINSTANCE hInst, const char *szSection, IconIte
sid.cx = sid.cy = pIcons[i].size;
sid.description.a = pIcons[i].szDescr;
sid.iDefaultIndex = -pIcons[i].defIconID;
- pIcons[i].hIcolib = (HANDLE)CallService("Skin2/Icons/AddIcon", hLangpack, (LPARAM)&sid);
+ pIcons[i].hIcolib = IcoLib_AddIcon(&sid, hLangpack);
}
}
@@ -71,6 +71,6 @@ MIR_CORE_DLL(void) Icon_RegisterT(HINSTANCE hInst, const TCHAR *szSection, IconI
sid.cx = sid.cy = pIcons[i].size;
sid.description.t = pIcons[i].tszDescr;
sid.iDefaultIndex = -pIcons[i].defIconID;
- pIcons[i].hIcolib = (HANDLE)CallService("Skin2/Icons/AddIcon", hLangpack, (LPARAM)&sid);
+ pIcons[i].hIcolib = IcoLib_AddIcon(&sid, hLangpack);
}
}