Commit 761301b6 authored by Alexandre Julliard's avatar Alexandre Julliard

wineconsole: Run a command shell by default.

parent 83558875
...@@ -780,6 +780,9 @@ static UINT WINECON_ParseOptions(const char* lpCmdLine, struct wc_init* wci) ...@@ -780,6 +780,9 @@ static UINT WINECON_ParseOptions(const char* lpCmdLine, struct wc_init* wci)
else else
return IDS_CMD_INVALID_BACKEND; return IDS_CMD_INVALID_BACKEND;
} }
else if (!strncmp(wci->ptr, "--help", 6) &&
(!wci->ptr[6] || wci->ptr[6] == ' ' || wci->ptr[6] == '\t'))
return IDS_CMD_ABOUT|WINECON_CMD_SHOW_USAGE;
else else
return IDS_CMD_INVALID_OPTION|WINECON_CMD_SHOW_USAGE; return IDS_CMD_INVALID_OPTION|WINECON_CMD_SHOW_USAGE;
} }
...@@ -788,8 +791,7 @@ static UINT WINECON_ParseOptions(const char* lpCmdLine, struct wc_init* wci) ...@@ -788,8 +791,7 @@ static UINT WINECON_ParseOptions(const char* lpCmdLine, struct wc_init* wci)
return 0; return 0;
while (*wci->ptr == ' ' || *wci->ptr == '\t') wci->ptr++; while (*wci->ptr == ' ' || *wci->ptr == '\t') wci->ptr++;
if (*wci->ptr == 0) if (*wci->ptr == 0) wci->ptr = "cmd";
return IDS_CMD_ABOUT|WINECON_CMD_SHOW_USAGE;
return 0; return 0;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment