Fix up registration of nsIFileLocator to use ProgIDs

This commit is contained in:
mcmullen%netscape.com 1999-06-15 08:07:58 +00:00
Родитель 44c82c1f92
Коммит c6c534a6b6
3 изменённых файлов: 4 добавлений и 3 удалений

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

@ -53,7 +53,8 @@ NSRegisterSelf(nsISupports* serviceMgr, const char *path)
{
nsComponentManager::RegisterComponent(kAppShellServiceCID, NULL, NULL, path, PR_TRUE, PR_TRUE);
nsComponentManager::RegisterComponent(kCmdLineServiceCID, NULL, NULL, path, PR_TRUE, PR_TRUE);
nsComponentManager::RegisterComponent(kFileLocatorCID, NULL, NULL, path, PR_TRUE, PR_TRUE);
nsComponentManager::RegisterComponent(kFileLocatorCID,
NULL, NS_FILELOCATOR_PROGID, path, PR_TRUE, PR_TRUE);
nsComponentManager::RegisterComponent(kProtocolHelperCID, NULL, NULL, path, PR_TRUE, PR_TRUE);
nsComponentManager::RegisterComponent(kXPConnectFactoryCID, NULL, NULL, path, PR_TRUE, PR_TRUE);
nsComponentManager::RegisterComponent(kNetSupportDialogCID, NULL, NULL, path, PR_TRUE, PR_TRUE);

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

@ -427,7 +427,7 @@ NS_IMETHODIMP nsFileLocator::GetFileLocation(
= (nsSpecialSystemDirectory::SystemDirectories)aType;
return NS_OK;
}
*(nsSpecialFileSpec*)outSpec = (nsSpecialFileSpec::Type)aType;
*(nsSpecialFileSpec*)&spec = (nsSpecialFileSpec::Type)aType;
return NS_NewFileSpecWithSpec(spec, outSpec);
}

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

@ -120,7 +120,7 @@ nsresult NS_AutoregisterComponents()
extern "C" void
NS_SetupRegistry_1()
{
nsComponentManager::RegisterComponent(kFileLocatorCID, NULL, NULL, APPSHELL_DLL, PR_FALSE, PR_FALSE);
nsComponentManager::RegisterComponent(kFileLocatorCID, NULL, NS_FILELOCATOR_PROGID, APPSHELL_DLL, PR_FALSE, PR_FALSE);
// This *has* to happen after registration of nsIFileLocator as the call
// required it.