Fixes 116299 Reduce size of nsLocalFileWin by 2 ptrs by factoring out shortcut resolver. Also fixes crash 117258 caused by trying to create a file or directory to a nonexistant drive. sr=rpotts, dveditz for the first bug, and sr=darin, r=gagan for the second bug
git-svn-id: svn://10.0.0.236/trunk@111541 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
@@ -56,7 +56,8 @@ static NS_DEFINE_CID(kURLParserCID, NS_NOAUTHURLPARSER_CID);
|
||||
void NS_StartupLocalFile()
|
||||
{
|
||||
#ifdef XP_WIN
|
||||
CoInitialize(NULL); // FIX: we should probably move somewhere higher up during startup
|
||||
nsresult rv = NS_CreateShortcutResolver();
|
||||
NS_ASSERTION(NS_SUCCEEDED(rv), "Shortcut resolver could not be created");
|
||||
#endif
|
||||
}
|
||||
|
||||
@@ -65,7 +66,7 @@ void NS_ShutdownLocalFile()
|
||||
NS_ShutdownLocalFileUnicode();
|
||||
|
||||
#ifdef XP_WIN
|
||||
CoUninitialize();
|
||||
NS_DestroyShortcutResolver();
|
||||
#endif
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user