mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-10 11:55:49 +00:00
Fixed bug #5564 - Remove RegisterComponent Calls from dlls which live in the components directory on Windows
This commit is contained in:
parent
dbf3f37765
commit
2056cfed43
@ -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
|
Loading…
Reference in New Issue
Block a user