From: Mykola Mykhno <klimmihno5+wine+gitlab@gmail.com> Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=37789 --- programs/cmd/tests/test_cmdline.cmd.exp | 6 +++--- programs/cmd/wcmdmain.c | 4 ++-- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/programs/cmd/tests/test_cmdline.cmd.exp b/programs/cmd/tests/test_cmdline.cmd.exp index fea46605869..e8b25046da3 100644 --- a/programs/cmd/tests/test_cmdline.cmd.exp +++ b/programs/cmd/tests/test_cmdline.cmd.exp @@ -70,11 +70,11 @@ var=33@space@ 1@space@ 2@space@ 0@space@ -@todo_wine@3@space@ +3@space@ 3@space@ 4@space@ Passed -@todo_wine@6@space@ +6@space@ ---------- Testing CMD /C quoting ----------------- "hi" 1@space@ @@ -84,7 +84,7 @@ Passed 1@space@ 0@space@ 0@space@ -@todo_wine@3@space@ +3@space@ 3@space@ 2@space@ 2@space@ diff --git a/programs/cmd/wcmdmain.c b/programs/cmd/wcmdmain.c index 4aec2e882e9..467209a053b 100644 --- a/programs/cmd/wcmdmain.c +++ b/programs/cmd/wcmdmain.c @@ -4849,7 +4849,7 @@ static void parse_command_line_parameters(struct cmd_parameters *parameters) /* opt_s left unflagged if the command starts with and contains exactly * one quoted string (exactly two quote characters). The quoted string * must be an executable name that has whitespace and must not have the - * following characters: &<>()@^| + * following characters: &<>@^| */ /* 1. Confirm there is at least one quote */ @@ -4867,7 +4867,7 @@ static void parse_command_line_parameters(struct cmd_parameters *parameters) opt_s = TRUE; for (p = q1; p != q2; p++) { - if (wcschr(L"&<>()@^'", *p)) + if (wcschr(L"&<>@^'", *p)) { opt_s = TRUE; break; -- GitLab https://gitlab.winehq.org/wine/wine/-/merge_requests/10797