start: Ignore multiple quoted arguments as title.

Bas Weelinck bas.weelinck at gmail.com
Mon Mar 20 12:14:19 CDT 2017


Fixes: https://bugs.winehq.org/show_bug.cgi?id=42514

Currently start will treat multiple quoted arguments in its
argv as console titles, storing the last argument as title
and ignoring the rest. This is not consistent with Windows
start built-in behaviour. This patch changes that.

Tested on Gentoo Linux.
Original start behaviour tested on Windows XP and Windows 7.

Signed-off-by: Bas Weelinck <bas.weelinck at gmail.com>
---
 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..ba6f335 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] == '"') {
+                /* Only parse first quoted argument as console title */
+                if (!title && argv[i][0] == '"') {
 			title = argv[i];
 			continue;
 		}
-- 
2.10.2




More information about the wine-patches mailing list