X-Git-Url: https://code.delx.au/gnu-emacs/blobdiff_plain/f1601063f29c99be77d2513320ed6d2494926c1d..37ad855a38786722833d06dfe78786acc7e9f412:/nt/cmdproxy.c diff --git a/nt/cmdproxy.c b/nt/cmdproxy.c index 9598f1d0a5..d4832ea9ce 100644 --- a/nt/cmdproxy.c +++ b/nt/cmdproxy.c @@ -546,12 +546,12 @@ spawn (const char *progname, char *cmdline, const char *dir, int *retcode) memset (&start, 0, sizeof (start)); start.cb = sizeof (start); - /* CreateProcess handles batch files as progname specially. This + /* CreateProcess handles batch files as progname specially. This special handling fails when both the batch file and arguments are quoted. We pass NULL as progname to avoid the special handling. */ if (progname != NULL && cmdline[0] == '"' && batch_file_p (progname)) - progname = NULL; + progname = NULL; if (CreateProcess (progname, cmdline, &sec_attrs, NULL, TRUE, 0, envblock, dir, &start, &child))