OJI MozClassic to raptor merge
git-svn-id: svn://10.0.0.236/trunk@18465 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
@@ -46,6 +46,8 @@
|
||||
#endif
|
||||
#endif
|
||||
|
||||
#include "nsIServiceManager.h"
|
||||
|
||||
nsHashtable *nsRepository::factories = NULL;
|
||||
PRMonitor *nsRepository::monitor = NULL;
|
||||
|
||||
@@ -251,7 +253,11 @@ nsresult nsRepository::loadFactory(FactoryEntry *aEntry,
|
||||
nsFactoryProc proc = (nsFactoryProc) PR_FindSymbol(aEntry->instance,
|
||||
"NSGetFactory");
|
||||
if (proc != NULL) {
|
||||
nsresult res = proc(aEntry->cid, aFactory);
|
||||
nsIServiceManager* serviceMgr = NULL;
|
||||
nsresult res = nsServiceManager::GetGlobalServiceManager(&serviceMgr);
|
||||
if (res == NS_OK) {
|
||||
res = proc(aEntry->cid, serviceMgr, aFactory);
|
||||
}
|
||||
return res;
|
||||
}
|
||||
PR_LOG(logmodule, PR_LOG_ERROR,
|
||||
|
||||
Reference in New Issue
Block a user