From 6d0d70ab2b7db330dd833ea749204f21b3eeb59d Mon Sep 17 00:00:00 2001 From: "sfraser%netscape.com" Date: Sun, 20 Jun 1999 01:01:09 +0000 Subject: [PATCH] Fix typo in plain text factory. Fix for bug 8554, r sspitzer git-svn-id: svn://10.0.0.236/trunk@35958 18797224-902f-48f8-a5cc-f745e15eee43 --- mozilla/editor/base/nsTextEditFactory.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mozilla/editor/base/nsTextEditFactory.cpp b/mozilla/editor/base/nsTextEditFactory.cpp index 7747ef9a852..d41182620ee 100644 --- a/mozilla/editor/base/nsTextEditFactory.cpp +++ b/mozilla/editor/base/nsTextEditFactory.cpp @@ -33,7 +33,7 @@ GetTextEditFactory(nsIFactory **aFactory, const nsCID & aClass) PR_EnterMonitor(GetEditorMonitor()); nsTextEditFactory *factory = new nsTextEditFactory(aClass); - if (factory) + if (!factory) return NS_ERROR_OUT_OF_MEMORY; nsCOMPtr pNSIFactory = do_QueryInterface(factory); if (!pNSIFactory)