summaryrefslogtreecommitdiff
path: root/plugins/Console/src
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/Console/src')
-rw-r--r--plugins/Console/src/Console.cpp8
1 files changed, 3 insertions, 5 deletions
diff --git a/plugins/Console/src/Console.cpp b/plugins/Console/src/Console.cpp
index c52b574648..3d0da48591 100644
--- a/plugins/Console/src/Console.cpp
+++ b/plugins/Console/src/Console.cpp
@@ -187,9 +187,7 @@ static void ShowConsole(int show)
if (hMenu)
{
- CLISTMENUITEM mi = {0};
-
- mi.cbSize = sizeof(mi);
+ CLISTMENUITEM mi = { sizeof(mi) };
mi.ptszName = (show) ? _T("Hide Console") : _T("Show Console");
mi.flags = CMIM_NAME | CMIF_TCHAR;
CallService(MS_CLIST_MODIFYMENUITEM, (WPARAM)hMenu, (LPARAM)&mi);
@@ -1271,9 +1269,9 @@ static int OnSystemModulesLoaded(WPARAM wParam,LPARAM lParam)
if (hwndConsole && IsWindow(hwndConsole))
{
- CLISTMENUITEM mi = {0};
HookEvent(ME_TTB_MODULELOADED, OnTTBLoaded);
- mi.cbSize = sizeof(mi);
+
+ CLISTMENUITEM mi = { sizeof(mi) };
mi.flags = CMIF_TCHAR;
mi.hIcon = hIcons[0];
mi.ptszPopupName = _T("&Help");