From 88790eed4ffd9ca555c8f9b73cb014a93b57a34f Mon Sep 17 00:00:00 2001 From: George Hazan Date: Mon, 22 Jun 2015 20:38:56 +0000 Subject: Menu_ModifyItem unbound from CLISTMENUITEM structure git-svn-id: http://svn.miranda-ng.org/main/trunk@14334 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- plugins/AvatarHistory/src/icolib.cpp | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) (limited to 'plugins/AvatarHistory/src/icolib.cpp') 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) -- cgit v1.2.3