Bug 296394 - Firefox should not complain about -console command line argument. patch from Dave Townsend (Mossop) <mossop.bugzilla@blueprintit.co.uk>, r=bsmedberg.

git-svn-id: svn://10.0.0.236/trunk@219062 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
mozilla.mano%sent.com
2007-01-28 00:33:10 +00:00
parent 5470e3820a
commit 75a1abc5ce

View File

@@ -422,6 +422,15 @@ nsNativeAppSupportWin::CheckConsole() {
// Failed. Probably because there already is one.
// There's little we can do, in any case.
}
// Remove the console argument from the command line.
do {
gArgv[i] = gArgv[i + 1];
++i;
} while (gArgv[i]);
--gArgc;
// Don't bother doing this more than once.
break;
}