fix fallout of commandline change for xulrunner, bug 276588, __args to gArgs, r=bsmedberg

This commit is contained in:
axel%pike.org 2005-01-20 15:06:19 +00:00
Родитель d8f01a7355
Коммит 79ce72a8bd
1 изменённых файлов: 3 добавлений и 3 удалений

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

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