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/AvatarHistory/src/icolib.cpp | 15 +++++---------- 1 file changed, 5 insertions(+), 10 deletions(-) (limited to 'plugins/AvatarHistory') diff --git a/plugins/AvatarHistory/src/icolib.cpp b/plugins/AvatarHistory/src/icolib.cpp index 508c683686..28a88494bb 100644 --- a/plugins/AvatarHistory/src/icolib.cpp +++ b/plugins/AvatarHistory/src/icolib.cpp @@ -61,22 +61,17 @@ int IcoLibIconsChanged(WPARAM wParam, LPARAM lParam) void SetupIcoLib() { - if (hHooks[4]) - { - SKINICONDESC sid = {0}; + if (hHooks[4]) { TCHAR path[MAX_PATH]; + GetModuleFileName(hInst, path, sizeof(path)); - GetModuleFileName(hInst, path, sizeof(path)); - - sid.cbSize = sizeof(sid); + SKINICONDESC sid = { sizeof(sid) }; sid.ptszSection = LPGENT("Avatar History"); sid.ptszDefaultFile = path; sid.flags = SIDF_ALL_TCHAR; - for (unsigned i = 0; i < MAX_REGS(iconList); i++) - { - if (!iconList[i].core) - { + for (unsigned i = 0; i < MAX_REGS(iconList); i++) { + if (!iconList[i].core) { sid.ptszDescription = iconList[i].szDescr; sid.pszName = iconList[i].szName; sid.iDefaultIndex = -iconList[i].defIconID; -- cgit v1.2.3