Module: wine Branch: master Commit: 5b4f8a385b46a8a8a8b09b8ca6578aa7b7995a1e URL: http://source.winehq.org/git/wine.git/?a=commit;h=5b4f8a385b46a8a8a8b09b8ca6...
Author: Bas Weelinck bas.weelinck@gmail.com Date: Mon Mar 20 18:14:19 2017 +0100
start: Ignore multiple quoted arguments as title.
Signed-off-by: Bas Weelinck bas.weelinck@gmail.com Signed-off-by: Alexandre Julliard julliard@winehq.org
---
programs/start/start.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/programs/start/start.c b/programs/start/start.c index 9f2c3f7..4010bef 100644 --- a/programs/start/start.c +++ b/programs/start/start.c @@ -224,7 +224,8 @@ int wmain (int argc, WCHAR *argv[]) * flags start with / and are case insensitive. */ for (i=1; i<argc; i++) { - if (argv[i][0] == '"') { + /* parse first quoted argument as console title */ + if (!title && argv[i][0] == '"') { title = argv[i]; continue; }