summaryrefslogtreecommitdiff
path: root/plugins/Nudge/src/nudge.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/Nudge/src/nudge.cpp')
-rw-r--r--plugins/Nudge/src/nudge.cpp5
1 files changed, 1 insertions, 4 deletions
diff --git a/plugins/Nudge/src/nudge.cpp b/plugins/Nudge/src/nudge.cpp
index 0afa6edee0..301827debb 100644
--- a/plugins/Nudge/src/nudge.cpp
+++ b/plugins/Nudge/src/nudge.cpp
@@ -30,10 +30,7 @@ void CNudge::Load(void)
int CNudgeElement::ShowContactMenu(bool show)
{
-
- CLISTMENUITEM mi;
- memset( &mi, 0, sizeof( mi ));
- mi.cbSize = sizeof( mi );
+ CLISTMENUITEM mi = { sizeof(mi) };
mi.flags = show? CMIM_FLAGS : CMIM_FLAGS | CMIF_HIDDEN ;
CallService(MS_CLIST_MODIFYMENUITEM, (WPARAM)hContactMenu, (LPARAM)&mi);