summaryrefslogtreecommitdiff
path: root/plugins/Clist_modern
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/Clist_modern')
-rw-r--r--plugins/Clist_modern/src/modern_clc.cpp16
-rw-r--r--plugins/Clist_modern/src/modern_clui.cpp8
2 files changed, 12 insertions, 12 deletions
diff --git a/plugins/Clist_modern/src/modern_clc.cpp b/plugins/Clist_modern/src/modern_clc.cpp
index a031919d39..a6cb44c833 100644
--- a/plugins/Clist_modern/src/modern_clc.cpp
+++ b/plugins/Clist_modern/src/modern_clc.cpp
@@ -1637,28 +1637,28 @@ static int clcHookModulesLoaded(WPARAM, LPARAM)
TCHAR szMyPath[MAX_PATH];
GetModuleFileName(g_hInst, szMyPath, SIZEOF(szMyPath));
- SKINICONDESC sid = { sizeof(sid) };
+ SKINICONDESC sid = { 0 };
sid.cx = sid.cy = 16;
- sid.ptszDefaultFile = szMyPath;
+ sid.defaultFile.t = szMyPath;
sid.flags = SIDF_PATH_TCHAR;
- sid.pszSection = LPGEN("Contact list");
- sid.pszDescription = LPGEN("Listening to");
+ sid.section.a = LPGEN("Contact list");
+ sid.description.a = LPGEN("Listening to");
sid.pszName = "LISTENING_TO_ICON";
sid.iDefaultIndex = -IDI_LISTENING_TO;
Skin_AddIcon(&sid);
- sid.pszSection = LPGEN("Contact list") "/" LPGEN("Avatar overlay");
+ sid.section.a = LPGEN("Contact list") "/" LPGEN("Avatar overlay");
for (int i = 0; i < SIZEOF(g_pAvatarOverlayIcons); i++) {
- sid.pszDescription = g_pAvatarOverlayIcons[i].description;
+ sid.description.a = g_pAvatarOverlayIcons[i].description;
sid.pszName = g_pAvatarOverlayIcons[i].name;
sid.iDefaultIndex = -g_pAvatarOverlayIcons[i].id;
Skin_AddIcon(&sid);
}
- sid.pszSection = LPGEN("Contact list") "/" LPGEN("Status overlay");
+ sid.section.a = LPGEN("Contact list") "/" LPGEN("Status overlay");
for (int i = 0; i < SIZEOF(g_pStatusOverlayIcons); i++) {
- sid.pszDescription = g_pStatusOverlayIcons[i].description;
+ sid.description.a = g_pStatusOverlayIcons[i].description;
sid.pszName = g_pStatusOverlayIcons[i].name;
sid.iDefaultIndex = -g_pStatusOverlayIcons[i].id;
Skin_AddIcon(&sid);
diff --git a/plugins/Clist_modern/src/modern_clui.cpp b/plugins/Clist_modern/src/modern_clui.cpp
index 31f4e347f2..b1ea419cb8 100644
--- a/plugins/Clist_modern/src/modern_clui.cpp
+++ b/plugins/Clist_modern/src/modern_clui.cpp
@@ -1545,13 +1545,13 @@ HANDLE RegisterIcolibIconHandle(char *szIcoID, char *szSectionName, char *szDesc
TCHAR fileFull[MAX_PATH] = { 0 };
- SKINICONDESC sid = { sizeof(sid) };
+ SKINICONDESC sid = { 0 };
sid.cx = sid.cy = 16;
- sid.pszSection = szSectionName;
+ sid.section.a = szSectionName;
sid.pszName = szIcoID;
sid.flags |= SIDF_PATH_TCHAR;
- sid.pszDescription = szDescription;
- sid.ptszDefaultFile = fileFull;
+ sid.description.a = szDescription;
+ sid.defaultFile.t = fileFull;
if (tszDefaultFile) {
PathToAbsoluteT(tszDefaultFile, fileFull);