Fix up registration of nsIFileLocator to use ProgIDs

This commit is contained in:
mcmullen%netscape.com 1999-06-15 08:07:58 +00:00
parent 44c82c1f92
commit c6c534a6b6
3 changed files with 4 additions and 3 deletions

View File

@ -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);

View File

@ -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);
}

View File

@ -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.