Closed Bug 73797 Opened 23 years ago Closed 23 years ago

Move CoCreateInstance out of the nsLocalFile.

Categories

(Core :: XPCOM, defect)

x86
Linux
defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla0.9

People

(Reporter: dougt, Assigned: dougt)

Details

Attachments

(1 file)

If the nsLocalFileWin has to resolve a symlink (shortcut), it will call
CoCreateInstance.  This call should be moved into startup code.
chris, can i get a r/sr on this simple patch.  It will only speed localfiles on
windows up when there is a FNF condition.
Status: NEW → ASSIGNED
+#ifdef XP_WIN
+  CoInitialize(NULL);  // FIX: we should probably move somewhere higher up 
during startup
+#endif

Uh, that's what you did, right? Or do you still want to move it *earlier*?

+#ifdef DOUGT_debug
+    printf("localfile - resolving symlink\n");
+#endif
+

Do you want to check this in?

sr=waterson
Yes, I still think that this should go higher.  Maybe the application should do 
this?  But for now, it is much better where it is.

Yes, I want the printf.  

thanks.

Target Milestone: --- → mozilla0.9
r=darin
Thanks guys.  Fixed is in.
Status: ASSIGNED → RESOLVED
Closed: 23 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: