summaryrefslogtreecommitdiff
path: root/plugins/SmileyAdd
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/SmileyAdd')
-rw-r--r--plugins/SmileyAdd/main.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/plugins/SmileyAdd/main.cpp b/plugins/SmileyAdd/main.cpp
index 92a7285a45..e647b694c2 100644
--- a/plugins/SmileyAdd/main.cpp
+++ b/plugins/SmileyAdd/main.cpp
@@ -64,7 +64,7 @@ static const PLUGININFOEX pluginInfoEx =
static SKINICONDESC skinDesc =
{
- SKINICONDESC_SIZE_V1, "SmileyAdd", NULL,
+ sizeof(SKINICONDESC), "SmileyAdd", NULL,
"SmileyAdd_ButtonSmiley", NULL, -IDI_SMILINGICON
};
@@ -88,7 +88,7 @@ static int ModulesLoaded(WPARAM, LPARAM)
skinDesc.pszDefaultFile = path;
skinDesc.pszDescription = LPGEN("Button Smiley");
- HANDLE hSkinIcon = (HANDLE)CallService(MS_SKIN2_ADDICON, 0, (LPARAM)&skinDesc);
+ HANDLE hSkinIcon = Skin_AddIcon(&skinDesc);
INT_PTR temp = CallService(MS_MC_GETPROTOCOLNAME, 0, 0);
metaProtoName = mir_strdup(temp == CALLSERVICE_NOTFOUND ? NULL : (char*)temp);