From 761301b6696d856acd4bc602e097b160b46b5338 Mon Sep 17 00:00:00 2001 From: Alexandre Julliard Date: Mon, 30 Sep 2013 14:31:23 +0200 Subject: [PATCH] wineconsole: Run a command shell by default. --- programs/wineconsole/wineconsole.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/programs/wineconsole/wineconsole.c b/programs/wineconsole/wineconsole.c index d2987055b7e..7698521cc26 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; }