зеркало из https://github.com/mozilla/pjs.git
fix for crash when getting bad command line args 45074 r=smfr
This commit is contained in:
Родитель
b3043dfab2
Коммит
fc9b8ad663
|
@ -1139,7 +1139,7 @@ int main(int argc, char* argv[])
|
|||
nsresult mainResult = main1(argc, argv, nativeApp ? (nsISupports*)nativeApp : (nsISupports*)splash);
|
||||
|
||||
/* if main1() didn't succeed, then don't bother trying to shut down clipboard, etc */
|
||||
if (NS_SUCCEEDED(rv)) {
|
||||
if (NS_SUCCEEDED(mainResult)) {
|
||||
rv = DoOnShutdown();
|
||||
NS_ASSERTION(NS_SUCCEEDED(rv), "DoOnShutdown failed");
|
||||
}
|
||||
|
|
Загрузка…
Ссылка в новой задаче