Fixed bug #5564 - Remove RegisterComponent Calls from dlls which live in the components directory on Windows
git-svn-id: svn://10.0.0.236/trunk@29499 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
@@ -129,6 +129,11 @@ extern "C" NS_EXPORT nsresult NSGetFactory(nsISupports* serviceMgr,
|
||||
return res;
|
||||
}
|
||||
|
||||
//
|
||||
// From bug #5564, it looks likes these functions are no longer needed on Windows and actually case
|
||||
// performance problems, so I'm ifdef-ing them out.
|
||||
//
|
||||
#if 0
|
||||
extern "C" NS_EXPORT nsresult NSRegisterSelf(nsISupports* aServMgr, const char * path)
|
||||
{
|
||||
nsresult rv;
|
||||
@@ -184,6 +189,7 @@ extern "C" NS_EXPORT nsresult NSRegisterSelf(nsISupports* aServMgr, const char *
|
||||
|
||||
extern "C" NS_EXPORT nsresult NSUnregisterSelf(nsISupports* aServMgr, const char * path)
|
||||
{
|
||||
|
||||
nsresult rv;
|
||||
|
||||
nsCOMPtr<nsIServiceManager> servMgr(do_QueryInterface(aServMgr, &rv));
|
||||
@@ -214,3 +220,5 @@ extern "C" NS_EXPORT nsresult NSUnregisterSelf(nsISupports* aServMgr, const char
|
||||
(void)servMgr->ReleaseService(kComponentManagerCID, compMgr);
|
||||
return rv;
|
||||
}
|
||||
|
||||
#endif
|
||||
Reference in New Issue
Block a user