diff options
Diffstat (limited to 'plugins/AddContactPlus')
-rw-r--r-- | plugins/AddContactPlus/src/main.cpp | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/plugins/AddContactPlus/src/main.cpp b/plugins/AddContactPlus/src/main.cpp index 23d349ade8..6f4c69cab3 100644 --- a/plugins/AddContactPlus/src/main.cpp +++ b/plugins/AddContactPlus/src/main.cpp @@ -70,12 +70,10 @@ INT_PTR AddContactPlusDialog(WPARAM, LPARAM) static int OnIconsChanged(WPARAM, LPARAM)
{
- CLISTMENUITEM mi = {0};
-
if (!hMainMenuItem)
return 0;
- mi.cbSize = sizeof(mi);
+ CLISTMENUITEM mi = { sizeof(mi) };
mi.flags = CMIM_ICON | CMIF_ICONFROMICOLIB | CMIF_TCHAR;
mi.icolibItem = hIconLibItem;
CallService(MS_CLIST_MODIFYMENUITEM, (WPARAM)hMainMenuItem, (LPARAM)&mi);
@@ -99,12 +97,10 @@ static int OnAccListChanged(WPARAM, LPARAM) if (iAccCount)
{
- CLISTMENUITEM mi = {0};
-
if (hMainMenuItem)
return 0;
- mi.cbSize = sizeof(mi);
+ CLISTMENUITEM mi = { sizeof(mi) };
mi.position = 500020001;
mi.flags = CMIF_ICONFROMICOLIB | CMIF_TCHAR;
mi.icolibItem = hIconLibItem;
|