Applied #11536: null ptr deref
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@66919 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -199,11 +199,14 @@ int wxFrameManager::GetViewNo( wxFrameView* pView )
|
||||
void wxFrameManager::EnableMenusForView( wxFrameView* pView, bool enable )
|
||||
{
|
||||
wxMenuBar* pMenuBar = GetParentFrame()->GetMenuBar();
|
||||
int count = pMenuBar->GetMenuCount();
|
||||
|
||||
if ( !pMenuBar )
|
||||
return;
|
||||
|
||||
int count = pMenuBar->GetMenuCount();
|
||||
|
||||
|
||||
|
||||
wxStringList::compatibility_iterator pNode = pView->mTopMenus.GetFirst();
|
||||
|
||||
int i;
|
||||
|
Reference in New Issue
Block a user