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:
joshmoz%gmail.com 2006-10-23 15:08:20 +00:00
Родитель 44d213832f
Коммит c0603518e5
1 изменённых файлов: 6 добавлений и 2 удалений

Просмотреть файл

@ -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);