nsBrowserWindow.cpp:3220

change
if (nsnull == menu) {
to
if (NS_OK == rv) {
which makes submenus be added correctly.
This commit is contained in:
pavlov%pavlov.net 1998-11-08 02:09:38 +00:00
parent 461243c902
commit f21684a83b

View File

@ -3217,7 +3217,7 @@ nsIMenu * CreateMenu(nsIMenu * aMenu, const nsString & aName, char aMneu)
nsnull,
kIMenuIID,
(void**)&menu);
if (nsnull == menu) {
if (NS_OK == rv) {
menu->Create(aMenu, aName);
}