Fixed nsICollection (and Count in particular) to be xpidl friendly.

This commit is contained in:
warren@netscape.com
1999-05-13 04:56:04 +00:00
parent b5ee243e1a
commit 7b44baf2c0
46 changed files with 897 additions and 281 deletions

View File

@@ -411,7 +411,10 @@ nsAppShellService::UnregisterTopLevelWindow(nsIWebShellWindow* aWindow)
mWindowList->RemoveElement(wsc);
NS_RELEASE(wsc);
}
if (0 == mWindowList->Count())
PRUint32 cnt;
rv = mWindowList->Count(&cnt);
if (NS_FAILED(rv)) return rv;
if (0 == cnt)
mAppShell->Exit();
return rv;
}