Fixed inheriting command-line options from parent process.
This commit is contained in:
parent
08867f7149
commit
eac3662bc7
|
@ -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 );
|
||||
|
||||
|
|
|
@ -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++;
|
||||
|
||||
|
|
Loading…
Reference in New Issue