diff options
author | George Hazan <george.hazan@gmail.com> | 2012-12-01 21:07:34 +0000 |
---|---|---|
committer | George Hazan <george.hazan@gmail.com> | 2012-12-01 21:07:34 +0000 |
commit | 66ddfd87a0e55b9534b8669392bb0cdee2e9fa3b (patch) | |
tree | 6075890e2ba60622069d5179f280d64b225c9be9 /plugins/AvatarHistory | |
parent | 1860018b201d995ed051c0affb72d5a1d09fa02e (diff) |
SKINICONDESC initialization - end-II :)
git-svn-id: http://svn.miranda-ng.org/main/trunk@2599 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/AvatarHistory')
-rw-r--r-- | plugins/AvatarHistory/src/icolib.cpp | 15 |
1 files changed, 5 insertions, 10 deletions
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;
|