diff --git a/libguile/posix-w32.c b/libguile/posix-w32.c index 44f033da1..2bcc31696 100644 --- a/libguile/posix-w32.c +++ b/libguile/posix-w32.c @@ -685,6 +685,10 @@ start_child (const char *exec_file, char **argv, cmdline = prepare_cmdline (exec_file, (const char * const *)argv, bin_sh_replaced); + /* When running in WINE, chances are we hit ENOENT (possibly + translated to ENOEXEC). */ + errno = 0; + /* All set and ready to fly. Launch the child process. */ if (!CreateProcess (progfile, cmdline, NULL, NULL, TRUE, 0, env_block, NULL, &si, &pi))