summaryrefslogtreecommitdiff
path: root/plugins/AvatarHistory/src/icolib.cpp
diff options
context:
space:
mode:
authorGeorge Hazan <george.hazan@gmail.com>2015-06-22 20:38:56 +0000
committerGeorge Hazan <george.hazan@gmail.com>2015-06-22 20:38:56 +0000
commit88790eed4ffd9ca555c8f9b73cb014a93b57a34f (patch)
treeb3e5bfe096005a9cac4bc14fdfbe5f6f5acad98a /plugins/AvatarHistory/src/icolib.cpp
parent9ecc2aa50e2183e2c4a11861ca6dede7d2151139 (diff)
Menu_ModifyItem unbound from CLISTMENUITEM structure
git-svn-id: http://svn.miranda-ng.org/main/trunk@14334 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/AvatarHistory/src/icolib.cpp')
-rw-r--r--plugins/AvatarHistory/src/icolib.cpp8
1 files changed, 3 insertions, 5 deletions
diff --git a/plugins/AvatarHistory/src/icolib.cpp b/plugins/AvatarHistory/src/icolib.cpp
index 7975c0ff2d..39778ab801 100644
--- a/plugins/AvatarHistory/src/icolib.cpp
+++ b/plugins/AvatarHistory/src/icolib.cpp
@@ -24,11 +24,9 @@ static void ReleaseIconEx(HICON hIcon)
static void IcoLibUpdateMenus()
{
- CLISTMENUITEM mi = { 0 };
- mi.flags = CMIM_FLAGS | CMIM_ICON;
- mi.hIcon = createDefaultOverlayedIcon(FALSE);
- Menu_ModifyItem(hMenu, &mi);
- DestroyIcon(mi.hIcon);
+ HICON hIcon = createDefaultOverlayedIcon(FALSE);
+ Menu_ModifyItem(hMenu, 0, hIcon, 0);
+ DestroyIcon(hIcon);
}
int IcoLibIconsChanged(WPARAM, LPARAM)