Fixed inheriting command-line options from parent process.
diff --git a/misc/options.c b/misc/options.c
index 9d5cec8..8f596ad 100644
--- a/misc/options.c
+++ b/misc/options.c
@@ -330,6 +330,7 @@
if (GetEnvironmentVariableA( "WINEOPTIONS", buffer, sizeof(buffer) ) && buffer[0])
inherit_options( buffer );
+ if (!argv) return;
parse_options( argv + 1 );
diff --git a/scheduler/process.c b/scheduler/process.c
index 11e95e4..1ea70b2 100644
--- a/scheduler/process.c
+++ b/scheduler/process.c
@@ -316,7 +316,7 @@
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++;