Hack to make wineconsole work again.
diff --git a/scheduler/process.c b/scheduler/process.c index e127ca2..d2b369c 100644 --- a/scheduler/process.c +++ b/scheduler/process.c
@@ -316,7 +316,7 @@ return FALSE; /* Parse command line arguments */ - OPTIONS_ParseOptions( argv ); + if (!info) OPTIONS_ParseOptions( argv ); app_argc = 0; while (argv[app_argc]) app_argc++;
diff --git a/win32/console.c b/win32/console.c index 0de5fac..13f8c62 100644 --- a/win32/console.c +++ b/win32/console.c
@@ -101,7 +101,7 @@ /* first try environment variable */ if ((p = getenv("WINECONSOLE")) != NULL) { - ret = snprintf(buffer, sizeof(buffer), "%s -- --use-event=%d", p, hEvent); + ret = snprintf(buffer, sizeof(buffer), "%s --use-event=%d", p, hEvent); if ((ret > -1) && (ret < sizeof(buffer)) && CreateProcessA(NULL, buffer, NULL, NULL, TRUE, DETACHED_PROCESS, NULL, NULL, &si, &pi)) goto succeed; @@ -109,7 +109,7 @@ } /* then the regular installation dir */ - ret = snprintf(buffer, sizeof(buffer), "%s -- --use-event=%d", BINDIR "/wineconsole", hEvent); + ret = snprintf(buffer, sizeof(buffer), "%s --use-event=%d", BINDIR "/wineconsole", hEvent); if ((ret > -1) && (ret < sizeof(buffer)) && CreateProcessA(NULL, buffer, NULL, NULL, TRUE, DETACHED_PROCESS, NULL, NULL, &si, &pi)) goto succeed; @@ -122,10 +122,10 @@ if ((p = strrchr(strcpy( path, full_argv0 ), '/'))) { p++; - sprintf(p, "wineconsole -- --use-event=%d", hEvent); + sprintf(p, "wineconsole --use-event=%d", hEvent); if (CreateProcessA(NULL, path, NULL, NULL, TRUE, DETACHED_PROCESS, NULL, NULL, &si, &pi)) goto succeed; - sprintf(p, "programs/wineconsole/wineconsole -- --use-event=%d", hEvent); + sprintf(p, "programs/wineconsole/wineconsole --use-event=%d", hEvent); if (CreateProcessA(NULL, path, NULL, NULL, TRUE, DETACHED_PROCESS, NULL, NULL, &si, &pi)) goto succeed; } @@ -145,10 +145,10 @@ if ((p = strrchr(path, '/'))) { p++; - sprintf(p, "wineconsole -- --use-event=%d", hEvent); + sprintf(p, "wineconsole --use-event=%d", hEvent); if (CreateProcessA(NULL, path, NULL, NULL, TRUE, DETACHED_PROCESS, NULL, NULL, &si, &pi)) goto succeed; - sprintf(p, "programs/wineconsole/wineconsole -- --use-event=%d", hEvent); + sprintf(p, "programs/wineconsole/wineconsole --use-event=%d", hEvent); if (CreateProcessA(NULL, path, NULL, NULL, TRUE, DETACHED_PROCESS, NULL, NULL, &si, &pi)) goto succeed; } @@ -158,7 +158,7 @@ } /* then try the regular PATH */ - sprintf(buffer, "wineconsole -- --use-event=%d\n", hEvent); + sprintf(buffer, "wineconsole --use-event=%d\n", hEvent); if (CreateProcessA(NULL, buffer, NULL, NULL, TRUE, DETACHED_PROCESS, NULL, NULL, &si, &pi)) goto succeed;