Fixed AutoregisterComponent() to return a value

This commit is contained in:
dp%netscape.com 1999-05-06 14:27:09 +00:00
Родитель df952436da
Коммит 0ef48a75eb
1 изменённых файлов: 8 добавлений и 2 удалений

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

@ -194,7 +194,11 @@ nsresult
nsViewerApp::AutoregisterComponents()
{
// Autoregister components to populate registry
// All this logic is in nsSpecialFileSpec in apprunner. But hey this is viewer a different app.
// All this logic is in nsSpecialFileSpec in apprunner.
// But hey this is viewer a different app.
nsresult rv = NS_ERROR_FAILURE;
nsSpecialSystemDirectory sysdir(nsSpecialSystemDirectory::OS_CurrentProcessDirectory);
#ifdef XP_MAC
sysdir += "Components";
@ -205,8 +209,10 @@ nsViewerApp::AutoregisterComponents()
const char *componentsDirPath = (const char *) componentsDir;
if (componentsDirPath != NULL)
{
nsComponentManager::AutoRegister(nsIComponentManager::NS_Startup, componentsDirPath);
rv = nsComponentManager::AutoRegister(nsIComponentManager::NS_Startup, componentsDirPath);
}
return rv;
}