Fixed bug in new Open URL dialog (unitinialized list pointers)

This commit is contained in:
cmanske%netscape.com 1998-10-07 05:31:05 +00:00
parent 977a59c1c9
commit f3a9279059

View File

@ -55,6 +55,7 @@ CDialogURL::CDialogURL(CWnd* pParent, MWContext * context)
#ifdef EDITOR
m_bInitComposerComboBox = FALSE;
#endif
XP_MEMSET(m_pNavTitleList, 0, MAX_HISTORY_LOCATIONS*sizeof(char*));
}
CDialogURL::~CDialogURL()
@ -258,8 +259,6 @@ CComboBox *CDialogURL::GetNavComboBox()
if( m_bInitNavComboBox )
return pComboBox;
XP_MEMSET(m_pNavTitleList, 0, MAX_HISTORY_LOCATIONS*sizeof(char*));
m_bInitNavComboBox = TRUE;
CDC *pDC = pComboBox->GetDC();
@ -310,7 +309,6 @@ CComboBox *CDialogURL::GetNavComboBox()
}
}
iMaxWidth += 4;
if( pComboBox->GetDroppedWidth() < iMaxWidth )
pComboBox->SetDroppedWidth(iMaxWidth);