diff options
Diffstat (limited to 'win32/process.c')
-rw-r--r-- | win32/process.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/win32/process.c b/win32/process.c index 6ab0d8735..d78041251 100644 --- a/win32/process.c +++ b/win32/process.c | |||
@@ -328,7 +328,7 @@ mingw_spawn_interpreter(int mode, const char *prog, char *const *argv, | |||
328 | } | 328 | } |
329 | #endif | 329 | #endif |
330 | 330 | ||
331 | path = alloc_system_drive(interp.path); | 331 | path = alloc_ext_space(interp.path); |
332 | if ((add_win32_extension(path) || file_is_executable(path))) { | 332 | if ((add_win32_extension(path) || file_is_executable(path))) { |
333 | new_argv[0] = path; | 333 | new_argv[0] = path; |
334 | ret = mingw_spawn_interpreter(mode, path, new_argv, envp, level); | 334 | ret = mingw_spawn_interpreter(mode, path, new_argv, envp, level); |
@@ -363,7 +363,7 @@ mingw_spawnvp(int mode, const char *cmd, char *const *argv) | |||
363 | return mingw_spawn_applet(mode, argv, NULL); | 363 | return mingw_spawn_applet(mode, argv, NULL); |
364 | #endif | 364 | #endif |
365 | if (has_path(cmd)) { | 365 | if (has_path(cmd)) { |
366 | path = alloc_system_drive(cmd); | 366 | path = alloc_ext_space(cmd); |
367 | if (add_win32_extension(path) || file_is_executable(path)) { | 367 | if (add_win32_extension(path) || file_is_executable(path)) { |
368 | ret = mingw_spawn_interpreter(mode, path, argv, NULL, 0); | 368 | ret = mingw_spawn_interpreter(mode, path, argv, NULL, 0); |
369 | free(path); | 369 | free(path); |