This commit is contained in:
mjudge%netscape.com 1998-11-30 08:35:45 +00:00
Родитель e139dc5033
Коммит 1e13676256
2 изменённых файлов: 8 добавлений и 2 удалений

Просмотреть файл

@ -39,11 +39,14 @@ getEditFactory(nsIFactory **aFactory)
{
nsEditFactory *factory = new nsEditFactory(getter_AddRefs(g_pNSIFactory));
*aFactory = g_pNSIFactory;
NS_IF_RELEASE(*aFactory);
if (factory)
result = NS_OK;
}
else
result = g_pNSIFactory->QueryInterface(kIFactoryIID, (void **)aFactory);
PR_ExitMonitor(getEditorMonitor());
return NS_ERROR_FAILURE;
return result;
}
////////////////////////////////////////////////////////////////////////////

Просмотреть файл

@ -39,11 +39,14 @@ getEditFactory(nsIFactory **aFactory)
{
nsEditFactory *factory = new nsEditFactory(getter_AddRefs(g_pNSIFactory));
*aFactory = g_pNSIFactory;
NS_IF_RELEASE(*aFactory);
if (factory)
result = NS_OK;
}
else
result = g_pNSIFactory->QueryInterface(kIFactoryIID, (void **)aFactory);
PR_ExitMonitor(getEditorMonitor());
return NS_ERROR_FAILURE;
return result;
}
////////////////////////////////////////////////////////////////////////////