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:
Julian Smart
2011-02-16 21:57:42 +00:00
parent 03d6b119ca
commit 8d91f5cacc

View File

@@ -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;