From: Elizabeth zfigura@codeweavers.com
This was introduced in bff25ffe7991bde75904d34ca733f2178b088316.
The commit aimed to fix command lines like `wine cmd /c "notepad test.txt"`. Such de-quoting is now handled at an earlier point.
Moreover, we explicitly only enter this path when we find an executable (which was not the case when the commit was written), so we cannot actually get ERROR_FILE_NOT_FOUND anymore anyway. --- programs/cmd/wcmdmain.c | 8 -------- 1 file changed, 8 deletions(-)
diff --git a/programs/cmd/wcmdmain.c b/programs/cmd/wcmdmain.c index 2c64785d44a..2fe18c8b391 100644 --- a/programs/cmd/wcmdmain.c +++ b/programs/cmd/wcmdmain.c @@ -1611,14 +1611,6 @@ RETURN_CODE WCMD_run_program(WCHAR *command, BOOL called) status = CreateProcessW(thisDir, command, NULL, NULL, TRUE, 0, NULL, NULL, &st, &pe); free(st.lpReserved2); - if ((opt_c || opt_k) && !opt_s && !status - && GetLastError()==ERROR_FILE_NOT_FOUND && command[0]=='"') { - /* strip first and last quote WCHARacters and try again */ - WCMD_strip_quotes(command); - opt_s = TRUE; - return WCMD_run_program(command, called); - } - if (!status) break;