diff options
Diffstat (limited to 'protocols/Tox/src/tox_icons.cpp')
-rw-r--r-- | protocols/Tox/src/tox_icons.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/protocols/Tox/src/tox_icons.cpp b/protocols/Tox/src/tox_icons.cpp index eecb2e2bd6..10a228c626 100644 --- a/protocols/Tox/src/tox_icons.cpp +++ b/protocols/Tox/src/tox_icons.cpp @@ -17,18 +17,18 @@ void CToxProto::InitIcons() char szSettingName[100];
TCHAR szSectionName[100];
- SKINICONDESC sid = { sizeof(SKINICONDESC) };
+ SKINICONDESC sid = { 0 };
sid.flags = SIDF_ALL_TCHAR;
- sid.ptszDefaultFile = szFile;
+ sid.defaultFile.t = szFile;
sid.pszName = szSettingName;
- sid.ptszSection = szSectionName;
+ sid.section.t = szSectionName;
mir_sntprintf(szSectionName, SIZEOF(szSectionName), _T("%s/%s"), LPGENT("Protocols"), LPGENT(MODULE));
for (int i = 0; i < SIZEOF(Icons); i++)
{
mir_snprintf(szSettingName, SIZEOF(szSettingName), "%s_%s", MODULE, Icons[i].Name);
- sid.ptszDescription = Icons[i].Description;
+ sid.description.t = Icons[i].Description;
sid.iDefaultIndex = -Icons[i].IconId;
Icons[i].Handle = Skin_AddIcon(&sid);
}
|