From ca9998df2bcbc1df81e821a34fba2483ce05343d Mon Sep 17 00:00:00 2001 From: "axel%pike.org" Date: Thu, 20 Jan 2005 15:06:19 +0000 Subject: [PATCH] fix fallout of commandline change for xulrunner, bug 276588, __args to gArgs, r=bsmedberg --- toolkit/xre/nsNativeAppSupportWin.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/toolkit/xre/nsNativeAppSupportWin.cpp b/toolkit/xre/nsNativeAppSupportWin.cpp index a6a9b03f3fb..b576cb45ddc 100644 --- a/toolkit/xre/nsNativeAppSupportWin.cpp +++ b/toolkit/xre/nsNativeAppSupportWin.cpp @@ -334,10 +334,10 @@ NS_IMPL_RELEASE_INHERITED(nsNativeAppSupportWin, nsNativeAppSupportBase) void nsNativeAppSupportWin::CheckConsole() { - for ( int i = 1; i < __argc; i++ ) { - if ( strcmp( "-console", __argv[i] ) == 0 + for ( int i = 1; i < gArgc; i++ ) { + if ( strcmp( "-console", gArgv[i] ) == 0 || - strcmp( "/console", __argv[i] ) == 0 ) { + strcmp( "/console", gArgv[i] ) == 0 ) { // Users wants to make sure we have a console. // Try to allocate one. BOOL rc = ::AllocConsole();