Fixes crash on start up of mail news

git-svn-id: svn://10.0.0.236/trunk@44162 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
rods%netscape.com
1999-08-23 20:59:08 +00:00
parent d2fe63fbc4
commit 2f2abdfe8f
2 changed files with 2 additions and 2 deletions

View File

@@ -4533,7 +4533,7 @@ nsCSSFrameConstructor::GetFrameFor(nsIPresShell* aPresShell,
nsIComboboxControlFrame * comboboxFrame;
res = frame->QueryInterface(nsCOMTypeInfo<nsIComboboxControlFrame>::GetIID(),
(void**)&comboboxFrame);
if (comboboxFrame) {
if (NS_SUCCEEDED(res) && comboboxFrame) {
nsIFrame * listFrame;
comboboxFrame->GetDropDown(&listFrame);
if (nsnull != listFrame) {

View File

@@ -4533,7 +4533,7 @@ nsCSSFrameConstructor::GetFrameFor(nsIPresShell* aPresShell,
nsIComboboxControlFrame * comboboxFrame;
res = frame->QueryInterface(nsCOMTypeInfo<nsIComboboxControlFrame>::GetIID(),
(void**)&comboboxFrame);
if (comboboxFrame) {
if (NS_SUCCEEDED(res) && comboboxFrame) {
nsIFrame * listFrame;
comboboxFrame->GetDropDown(&listFrame);
if (nsnull != listFrame) {