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])
|
if (GetEnvironmentVariableA( "WINEOPTIONS", buffer, sizeof(buffer) ) && buffer[0])
|
||||||
inherit_options( buffer );
|
inherit_options( buffer );
|
||||||
|
if (!argv) return;
|
||||||
|
|
||||||
parse_options( argv + 1 );
|
parse_options( argv + 1 );
|
||||||
|
|
||||||
|
|
|
@ -316,7 +316,7 @@ static BOOL process_init( char *argv[] )
|
||||||
return FALSE;
|
return FALSE;
|
||||||
|
|
||||||
/* Parse command line arguments */
|
/* Parse command line arguments */
|
||||||
if (!info) OPTIONS_ParseOptions( argv );
|
OPTIONS_ParseOptions( info ? argv : NULL );
|
||||||
app_argc = 0;
|
app_argc = 0;
|
||||||
while (argv[app_argc]) app_argc++;
|
while (argv[app_argc]) app_argc++;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue