timeless%mozdev.org b4bb853e8d Bug 321167 viewer crashes at launch
r=roc sr=roc

Stop calling InitXPCOM2 since there's now a call to InitXPCOM3

Changing nsViewerApp::SetupRegistry and nsViewerApp::Initialize to
appropriately bail for failure cases, both will return SUCCESS and set
mIsInitialized only if it leaves XPCOM initialized. Otherwise it will
return failure, leave mIsInitialized false and leave XPCOM uninitialized
or if it started it up, it will shutdown xpcom before returning.

main will return -1 if nsNativeViewerApp isn't created and -2 if
initialize fails.


git-svn-id: svn://10.0.0.236/trunk@187151 18797224-902f-48f8-a5cc-f745e15eee43
2006-01-08 22:15:30 +00:00
..
2006-01-08 22:15:30 +00:00