summaryrefslogtreecommitdiff
path: root/protocols/Skype/src/skype_icons.cpp
diff options
context:
space:
mode:
authorKirill Volinsky <mataes2007@gmail.com>2012-09-27 20:17:40 +0000
committerKirill Volinsky <mataes2007@gmail.com>2012-09-27 20:17:40 +0000
commitb03e423cdb55d973230e20842bfc0fd826718201 (patch)
tree798fd755efb65e1144701764d397e18f8d40aff4 /protocols/Skype/src/skype_icons.cpp
parent68d2b18623f74651c5fd5fbd34cf585653edc1c8 (diff)
added protocol icon
git-svn-id: http://svn.miranda-ng.org/main/trunk@1693 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'protocols/Skype/src/skype_icons.cpp')
-rw-r--r--protocols/Skype/src/skype_icons.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/protocols/Skype/src/skype_icons.cpp b/protocols/Skype/src/skype_icons.cpp
index cbd893fb2d..db213b8197 100644
--- a/protocols/Skype/src/skype_icons.cpp
+++ b/protocols/Skype/src/skype_icons.cpp
@@ -17,17 +17,19 @@ void IconsLoad()
{
TCHAR szFile[MAX_PATH];
char szSettingName[100];
+ TCHAR szSectionName[100];
SKINICONDESC sid = {0};
unsigned i;
- GetModuleFileName(hInst, szFile, MAX_PATH);
+ GetModuleFileName(g_hInstance, szFile, MAX_PATH);
sid.cbSize = sizeof(SKINICONDESC);
sid.flags = SIDF_ALL_TCHAR;
sid.ptszDefaultFile = szFile;
sid.pszName = szSettingName;
- sid.ptszSection = _T(MODULE);
+ sid.ptszSection = szSectionName;
+ mir_sntprintf(szSectionName, SIZEOF(szSectionName), _T("%s/%s"), LPGENT("Protocols"), LPGENT(MODULE));
for (i = 0; i < SIZEOF(iconList); i++)
{
mir_snprintf(szSettingName, SIZEOF(szSettingName), "%s_%s", MODULE, iconList[i].szName);