зеркало из https://github.com/mozilla/gecko-dev.git
Fix up registration of nsIFileLocator to use ProgIDs
This commit is contained in:
Родитель
44c82c1f92
Коммит
c6c534a6b6
|
@ -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.
|
||||
|
|
Загрузка…
Ссылка в новой задаче