Fixed inheriting command-line options from parent process.

This commit is contained in:
Alexandre Julliard 2002-04-14 19:36:02 +00:00
parent 08867f7149
commit eac3662bc7
2 changed files with 2 additions and 1 deletions

View File

@ -330,6 +330,7 @@ void OPTIONS_ParseOptions( char *argv[] )
if (GetEnvironmentVariableA( "WINEOPTIONS", buffer, sizeof(buffer) ) && buffer[0])
inherit_options( buffer );
if (!argv) return;
parse_options( argv + 1 );

View File

@ -316,7 +316,7 @@ static BOOL process_init( char *argv[] )
return FALSE;
/* Parse command line arguments */
if (!info) OPTIONS_ParseOptions( argv );
OPTIONS_ParseOptions( info ? argv : NULL );
app_argc = 0;
while (argv[app_argc]) app_argc++;