diff options
author | George Hazan <ghazan@miranda.im> | 2017-08-29 18:35:41 +0300 |
---|---|---|
committer | George Hazan <ghazan@miranda.im> | 2017-08-29 18:35:41 +0300 |
commit | c53dda67ae4a614b836412af5eb763d56dc1f763 (patch) | |
tree | 00b063cbf2b88ecfe30c096fbe766eb98e8874c0 /plugins/AvatarHistory/src/icolib.cpp | |
parent | 7f51e11dbf2276d80b80798eabf3a44e91ade8c3 (diff) |
AvatarHistory: code cleaning + handle leak fix
Diffstat (limited to 'plugins/AvatarHistory/src/icolib.cpp')
-rw-r--r-- | plugins/AvatarHistory/src/icolib.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/plugins/AvatarHistory/src/icolib.cpp b/plugins/AvatarHistory/src/icolib.cpp index 36d039d765..28cfbb9f6c 100644 --- a/plugins/AvatarHistory/src/icolib.cpp +++ b/plugins/AvatarHistory/src/icolib.cpp @@ -38,19 +38,19 @@ int IcoLibIconsChanged(WPARAM, LPARAM) void SetupIcoLib()
{
iconList[0].hIcolib = Skin_GetIconHandle(SKINICON_OTHER_HISTORY);
- Icon_Register(hInst, LPGEN("Avatar history"), iconList+1, _countof(iconList)-1);
+ Icon_Register(hInst, LPGEN("Avatar history"), iconList + 1, _countof(iconList) - 1);
IcoLibUpdateMenus();
}
static HICON getOverlayedIcon(HICON icon, HICON overlay, BOOL big)
{
HIMAGELIST il = ImageList_Create(
- GetSystemMetrics(big?SM_CXICON:SM_CXSMICON),
- GetSystemMetrics(big?SM_CYICON:SM_CYSMICON),
- ILC_COLOR32|ILC_MASK, 2, 2);
+ GetSystemMetrics(big ? SM_CXICON : SM_CXSMICON),
+ GetSystemMetrics(big ? SM_CYICON : SM_CYSMICON),
+ ILC_COLOR32 | ILC_MASK, 2, 2);
ImageList_AddIcon(il, icon);
ImageList_AddIcon(il, overlay);
- HIMAGELIST newImage = ImageList_Merge(il,0,il,1,0,0);
+ HIMAGELIST newImage = ImageList_Merge(il, 0, il, 1, 0, 0);
ImageList_Destroy(il);
HICON hIcon = ImageList_GetIcon(newImage, 0, 0);
ImageList_Destroy(newImage);
|