summaryrefslogtreecommitdiff
path: root/protocols/MSN/msn_opts.cpp
diff options
context:
space:
mode:
authorGeorge Hazan <george.hazan@gmail.com>2012-07-19 22:48:01 +0000
committerGeorge Hazan <george.hazan@gmail.com>2012-07-19 22:48:01 +0000
commit95aa036670a1ce2c461ffd9bd3a586d191ee4675 (patch)
treecd244db18622df3462166ed39593ca924c890f6b /protocols/MSN/msn_opts.cpp
parentf6e0db0590e2f8feeacc29d4e50007fbe358f9d5 (diff)
- various icolib fixes;
- code cleaning git-svn-id: http://svn.miranda-ng.org/main/trunk@1061 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'protocols/MSN/msn_opts.cpp')
-rw-r--r--protocols/MSN/msn_opts.cpp7
1 files changed, 3 insertions, 4 deletions
diff --git a/protocols/MSN/msn_opts.cpp b/protocols/MSN/msn_opts.cpp
index b611b2559a..b2fd4a9f8c 100644
--- a/protocols/MSN/msn_opts.cpp
+++ b/protocols/MSN/msn_opts.cpp
@@ -55,10 +55,10 @@ HANDLE hIconLibItem[SIZEOF(iconList)];
void MsnInitIcons(void)
{
TCHAR szFile[MAX_PATH];
- char szSectionName[100];
+ GetModuleFileName(hInst, szFile, SIZEOF(szFile));
+ char szSectionName[100];
mir_snprintf(szSectionName, sizeof(szSectionName), "%s/%s", LPGEN("Protocols"), LPGEN("MSN"));
- GetModuleFileName(hInst, szFile, SIZEOF(szFile));
SKINICONDESC sid = {0};
sid.cbSize = sizeof(SKINICONDESC);
@@ -66,8 +66,7 @@ void MsnInitIcons(void)
sid.pszSection = szSectionName;
sid.flags = SIDF_PATH_TCHAR;
- for (unsigned i = 0; i < SIZEOF(iconList); i++)
- {
+ for (int i = 0; i < SIZEOF(iconList); i++) {
char szSettingName[100];
mir_snprintf(szSettingName, sizeof(szSettingName), "MSN_%s", iconList[i].szName);
sid.pszName = szSettingName;