Fixes 73797. Moves some initialization code up higher so that it does not have

to be called so much.

r=darin@Netscape.com
sr=waterson@netscape.com
This commit is contained in:
dougt@netscape.com
2001-04-12 23:56:28 +00:00
parent cd3a489d4c
commit e2950eb1f5
2 changed files with 12 additions and 12 deletions

View File

@@ -253,6 +253,9 @@ nsFSStringConversion::FSToNewUCS( const char* aIn, PRUnichar** aOut)
void NS_StartupLocalFile()
{
#ifdef XP_WIN
CoInitialize(NULL); // FIX: we should probably move somewhere higher up during startup
#endif
}
void NS_ShutdownLocalFile()
@@ -260,6 +263,11 @@ void NS_ShutdownLocalFile()
#ifndef XPCOM_STANDALONE
nsFSStringConversion::CleanUp();
#endif /* XPCOM_STANDALONE */
#ifdef XP_WIN
CoUninitialize();
#endif
}
// Unicode interface Wrapper