summaryrefslogtreecommitdiff
path: root/plugins/NotesAndReminders/src
diff options
context:
space:
mode:
authorGeorge Hazan <george.hazan@gmail.com>2015-06-24 15:02:42 +0000
committerGeorge Hazan <george.hazan@gmail.com>2015-06-24 15:02:42 +0000
commit727a0432f5909ba54e6d15010fde94dff825fe5e (patch)
tree2bca1de02335533dc2678c143e7b8ff088c25d47 /plugins/NotesAndReminders/src
parent0ccdb951979ead80e9264233776b9147ff701fc7 (diff)
fixes for MENUITEMINFO declarations
git-svn-id: http://svn.miranda-ng.org/main/trunk@14363 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/NotesAndReminders/src')
-rw-r--r--plugins/NotesAndReminders/src/notes.cpp17
-rw-r--r--plugins/NotesAndReminders/src/reminders.cpp2
2 files changed, 9 insertions, 10 deletions
diff --git a/plugins/NotesAndReminders/src/notes.cpp b/plugins/NotesAndReminders/src/notes.cpp
index 3f553dee1e..8ad6753abf 100644
--- a/plugins/NotesAndReminders/src/notes.cpp
+++ b/plugins/NotesAndReminders/src/notes.cpp
@@ -1833,15 +1833,14 @@ static void InitListView(HWND AHLV)
static BOOL DoListContextMenu(HWND AhWnd,WPARAM wParam,LPARAM lParam,STICKYNOTE *pNote)
{
- HWND hwndListView;
- HMENU hMenuLoad,FhMenu;
- MENUITEMINFO mii;
-
- hwndListView = (HWND)wParam;
- if (hwndListView != GetDlgItem(AhWnd,IDC_LISTREMINDERS)) return FALSE;
- hMenuLoad = LoadMenu(hinstance,"MNU_NOTELISTPOPUP");
- FhMenu = GetSubMenu(hMenuLoad,0);
-
+ HWND hwndListView = (HWND)wParam;
+ if (hwndListView != GetDlgItem(AhWnd,IDC_LISTREMINDERS))
+ return FALSE;
+
+ HMENU hMenuLoad = LoadMenu(hinstance,"MNU_NOTELISTPOPUP");
+ HMENU FhMenu = GetSubMenu(hMenuLoad,0);
+
+ MENUITEMINFO mii = { 0 };
mii.cbSize = sizeof(mii);
mii.fMask = MIIM_STATE;
mii.fState = MFS_DEFAULT;
diff --git a/plugins/NotesAndReminders/src/reminders.cpp b/plugins/NotesAndReminders/src/reminders.cpp
index 192ea34e5c..8e4238cff7 100644
--- a/plugins/NotesAndReminders/src/reminders.cpp
+++ b/plugins/NotesAndReminders/src/reminders.cpp
@@ -2343,7 +2343,7 @@ static BOOL DoListContextMenu(HWND AhWnd,WPARAM wParam,LPARAM lParam,REMINDERDAT
HMENU hMenuLoad = LoadMenu(hinstance, _T("MNU_REMINDERPOPUP"));
HMENU FhMenu = GetSubMenu(hMenuLoad, 0);
- MENUITEMINFO mii;
+ MENUITEMINFO mii = { 0 };
mii.cbSize = sizeof(mii);
mii.fMask = MIIM_STATE;
mii.fState = MFS_DEFAULT;