summaryrefslogtreecommitdiff
path: root/plugins/CrashDumper
diff options
context:
space:
mode:
authorGeorge Hazan <george.hazan@gmail.com>2012-12-01 20:32:13 +0000
committerGeorge Hazan <george.hazan@gmail.com>2012-12-01 20:32:13 +0000
commit1860018b201d995ed051c0affb72d5a1d09fa02e (patch)
tree1ee096c43578fdf5694e5487d672830f810f186c /plugins/CrashDumper
parent7300094417302d82aa4f3f6e469f91d8facf4f26 (diff)
SKINICONDESC initialization - end of story
git-svn-id: http://svn.miranda-ng.org/main/trunk@2598 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/CrashDumper')
-rw-r--r--plugins/CrashDumper/src/crshdmp_icons.cpp13
1 files changed, 5 insertions, 8 deletions
diff --git a/plugins/CrashDumper/src/crshdmp_icons.cpp b/plugins/CrashDumper/src/crshdmp_icons.cpp
index 766be7d8cc..670adae90c 100644
--- a/plugins/CrashDumper/src/crshdmp_icons.cpp
+++ b/plugins/CrashDumper/src/crshdmp_icons.cpp
@@ -38,19 +38,16 @@ static HANDLE hIconLibItem[SIZEOF(iconList)];
void InitIcons(void)
{
- char szFile[MAX_PATH];
char szSettingName[100];
- SKINICONDESC sid = {0};
+ TCHAR szFile[MAX_PATH];
+ GetModuleFileName(hInst, szFile, SIZEOF(szFile));
- sid.cbSize = sizeof(SKINICONDESC);
- sid.pszDefaultFile = szFile;
+ SKINICONDESC sid = { sizeof(sid) };
+ sid.ptszDefaultFile = szFile;
sid.pszName = szSettingName;
sid.pszSection = (char*)PluginName;
- GetModuleFileNameA(hInst, szFile, MAX_PATH);
-
- for (unsigned i = 0; i < SIZEOF(iconList); i++)
- {
+ for (unsigned i = 0; i < SIZEOF(iconList); i++) {
mir_snprintf(szSettingName, sizeof(szSettingName), "%s_%s", PluginName, iconList[i].szName);
sid.pszDescription = (char*)iconList[i].szDescr;