зеркало из https://github.com/mozilla/gecko-dev.git
Changing Pref creation from CreateI (which does not work) to GetService.
This commit is contained in:
Родитель
99aab3d592
Коммит
0c4a589fd3
|
@ -1216,10 +1216,9 @@ nsInstall::CurrentUserNode(nsString& userRegNode)
|
|||
int len = MAXREGNAMELEN;
|
||||
nsIPref * prefs;
|
||||
|
||||
nsresult rv = nsComponentManager::CreateInstance(kPrefsIID,
|
||||
nsnull,
|
||||
kPrefsCID,
|
||||
(void**) &prefs);
|
||||
nsresult rv = nsServiceManager::GetService(kPrefsCID,
|
||||
kPrefsIID,
|
||||
(nsISupports**) &prefs);
|
||||
|
||||
|
||||
if ( NS_SUCCEEDED(rv) )
|
||||
|
|
|
@ -132,10 +132,9 @@ nsInstallTrigger::UpdateEnabled(PRBool* aReturn)
|
|||
{
|
||||
nsIPref * prefs;
|
||||
|
||||
nsresult rv = nsComponentManager::CreateInstance(kPrefsIID,
|
||||
nsnull,
|
||||
kPrefsCID,
|
||||
(void**) &prefs);
|
||||
nsresult rv = nsServiceManager::GetService(kPrefsCID,
|
||||
kPrefsIID,
|
||||
(nsISupports**) &prefs);
|
||||
|
||||
|
||||
if ( NS_SUCCEEDED(rv) )
|
||||
|
|
Загрузка…
Ссылка в новой задаче