summaryrefslogtreecommitdiff
path: root/plugins/FileAsMessage/src/main.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/FileAsMessage/src/main.cpp')
-rw-r--r--plugins/FileAsMessage/src/main.cpp10
1 files changed, 4 insertions, 6 deletions
diff --git a/plugins/FileAsMessage/src/main.cpp b/plugins/FileAsMessage/src/main.cpp
index a9f4cb17d9..9a8cf990b4 100644
--- a/plugins/FileAsMessage/src/main.cpp
+++ b/plugins/FileAsMessage/src/main.cpp
@@ -204,14 +204,12 @@ DWORD CreateSetting(char *name, DWORD defvalue)
int OnModulesLoaded(WPARAM wparam,LPARAM lparam)
{
int indx;
- SKINICONDESC sid;
char ModuleName[MAX_PATH];
-
- ZeroMemory(&sid, sizeof(sid));
- sid.cbSize = sizeof(sid);
- sid.pszSection = Translate("fileAsMessage");
GetModuleFileName(hInst, ModuleName, sizeof(ModuleName));
- for(indx = 0; indx < SIZEOF(hIcons); indx++)
+
+ SKINICONDESC sid = { sizeof(sid) };
+ sid.pszSection = "fileAsMessage";
+ for(int indx = 0; indx < SIZEOF(hIcons); indx++)
{
//sid.pszSection = szIconGroup[indx];
sid.pszName = szIconId[indx];