Revisão | 6df26b62502e7541808ecb6f62bb39f367936185 (tree) |
---|---|
Hora | 2013-11-07 00:42:42 |
Autor | sdottaka <none@none> |
Commiter | sdottaka |
forgot to initialize MENUITEMINFO structure
--HG--
branch : stable
@@ -103,7 +103,7 @@ void CMDITabBar::OnContextMenu(CWnd *pWnd, CPoint point) | ||
103 | 103 | m_pMainFrame->MDIActivate(pMDIChild); |
104 | 104 | CMenu* pPopup = pMDIChild->GetSystemMenu(FALSE); |
105 | 105 | if (!pPopup) return; |
106 | - MENUITEMINFO mii; | |
106 | + MENUITEMINFO mii = {0}; | |
107 | 107 | mii.cbSize = sizeof(MENUITEMINFO); |
108 | 108 | if (!pPopup->GetMenuItemInfo(ID_CLOSE_OTHER_TABS, &mii, FALSE)) |
109 | 109 | { |