Module: wine Branch: master Commit: 761301b6696d856acd4bc602e097b160b46b5338 URL: http://source.winehq.org/git/wine.git/?a=commit;h=761301b6696d856acd4bc602e0...
Author: Alexandre Julliard julliard@winehq.org Date: Mon Sep 30 14:31:23 2013 +0200
wineconsole: Run a command shell by default.
---
programs/wineconsole/wineconsole.c | 6 ++++-- 1 files changed, 4 insertions(+), 2 deletions(-)
diff --git a/programs/wineconsole/wineconsole.c b/programs/wineconsole/wineconsole.c index d298705..7698521 100644 --- a/programs/wineconsole/wineconsole.c +++ b/programs/wineconsole/wineconsole.c @@ -780,6 +780,9 @@ static UINT WINECON_ParseOptions(const char* lpCmdLine, struct wc_init* wci) else 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 return IDS_CMD_INVALID_OPTION|WINECON_CMD_SHOW_USAGE; } @@ -788,8 +791,7 @@ static UINT WINECON_ParseOptions(const char* lpCmdLine, struct wc_init* wci) return 0;
while (*wci->ptr == ' ' || *wci->ptr == '\t') wci->ptr++; - if (*wci->ptr == 0) - return IDS_CMD_ABOUT|WINECON_CMD_SHOW_USAGE; + if (*wci->ptr == 0) wci->ptr = "cmd";
return 0; }