diff options
Diffstat (limited to 'protocols/MSN/msn_opts.cpp')
-rw-r--r-- | protocols/MSN/msn_opts.cpp | 7 |
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;
|