From 66ddfd87a0e55b9534b8669392bb0cdee2e9fa3b Mon Sep 17 00:00:00 2001 From: George Hazan Date: Sat, 1 Dec 2012 21:07:34 +0000 Subject: SKINICONDESC initialization - end-II :) git-svn-id: http://svn.miranda-ng.org/main/trunk@2599 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- plugins/FileAsMessage/src/main.cpp | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) (limited to 'plugins/FileAsMessage') 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]; -- cgit v1.2.3