From 75a1abc5ce76ae1e5799d03b66cbbbcaa3ccc2a8 Mon Sep 17 00:00:00 2001 From: "mozilla.mano%sent.com" Date: Sun, 28 Jan 2007 00:33:10 +0000 Subject: [PATCH] Bug 296394 - Firefox should not complain about -console command line argument. patch from Dave Townsend (Mossop) , r=bsmedberg. git-svn-id: svn://10.0.0.236/trunk@219062 18797224-902f-48f8-a5cc-f745e15eee43 --- mozilla/toolkit/xre/nsNativeAppSupportWin.cpp | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/mozilla/toolkit/xre/nsNativeAppSupportWin.cpp b/mozilla/toolkit/xre/nsNativeAppSupportWin.cpp index f33a9158262..b93c1d905ae 100644 --- a/mozilla/toolkit/xre/nsNativeAppSupportWin.cpp +++ b/mozilla/toolkit/xre/nsNativeAppSupportWin.cpp @@ -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; }