From 2104de821739508078c23dcc046a5640bf300ea1 Mon Sep 17 00:00:00 2001 From: MikalaiR Date: Wed, 24 Jun 2015 12:58:08 +0000 Subject: TabSRMM: fix menu item duplication git-svn-id: http://svn.miranda-ng.org/main/trunk@14361 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- plugins/TabSRMM/src/chat/tools.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'plugins/TabSRMM/src/chat') diff --git a/plugins/TabSRMM/src/chat/tools.cpp b/plugins/TabSRMM/src/chat/tools.cpp index a3c8960ba9..f9d2f56a46 100644 --- a/plugins/TabSRMM/src/chat/tools.cpp +++ b/plugins/TabSRMM/src/chat/tools.cpp @@ -598,7 +598,7 @@ UINT CreateGCMenu(HWND hwndDlg, HMENU *hMenu, int iIndex, POINT pt, SESSION_INFO void DestroyGCMenu(HMENU *hMenu, int iIndex) { - MENUITEMINFO mi = { 0 }; + MENUITEMINFO mi = { sizeof(MENUITEMINFO) }; mi.fMask = MIIM_SUBMENU; while (GetMenuItemInfo(*hMenu, iIndex, TRUE, &mi)) { if (mi.hSubMenu != NULL) -- cgit v1.2.3