From f21684a83bb421f2980940c18bc3c4b41a2d96d0 Mon Sep 17 00:00:00 2001 From: "pavlov%pavlov.net" Date: Sun, 8 Nov 1998 02:09:38 +0000 Subject: [PATCH] nsBrowserWindow.cpp:3220 change if (nsnull == menu) { to if (NS_OK == rv) { which makes submenus be added correctly. --- xpfe/xpviewer/src/nsBrowserWindow.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/xpfe/xpviewer/src/nsBrowserWindow.cpp b/xpfe/xpviewer/src/nsBrowserWindow.cpp index ebbff2d31ee3..8d2f91e6f978 100644 --- a/xpfe/xpviewer/src/nsBrowserWindow.cpp +++ b/xpfe/xpviewer/src/nsBrowserWindow.cpp @@ -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); }