Fix typo in plain text factory. Fix for bug 8554, r sspitzer

This commit is contained in:
sfraser%netscape.com 1999-06-20 01:01:09 +00:00
parent 907d086d7b
commit 71f072beae

View File

@ -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<nsIFactory> pNSIFactory = do_QueryInterface(factory);
if (!pNSIFactory)