зеркало из https://github.com/mozilla/pjs.git
don't pass on psn flag from the OS. gets rid of error in js console on app startup. b=304755 r=mento sr=pinkerton
This commit is contained in:
Родитель
44d213832f
Коммит
c0603518e5
|
@ -166,8 +166,12 @@ nsresult nsMacCommandLine::Initialize(int& argc, char**& argv)
|
|||
|
||||
// Here, we may actually get useful args.
|
||||
// Copy them first to mArgv.
|
||||
for (int arg = 0; arg < argc; arg++)
|
||||
AddToCommandLine(argv[arg]);
|
||||
for (int arg = 0; arg < argc; arg++) {
|
||||
char* flag = argv[arg];
|
||||
// don't pass on the psn (Process Serial Number) flag from the OS
|
||||
if (strncmp(flag, "-psn_", 5) != 0)
|
||||
AddToCommandLine(flag);
|
||||
}
|
||||
|
||||
// Set up AppleEvent handling.
|
||||
OSErr err = CreateAEHandlerClasses(false);
|
||||
|
|
Загрузка…
Ссылка в новой задаче