Commit cae797cf authored by Sergey Lyubka's avatar Sergey Lyubka

Merge branch 'master' of https://github.com/cesanta/mongoose

parents 0d885add 842231cc
...@@ -15,6 +15,7 @@ ...@@ -15,6 +15,7 @@
// Alternatively, you can license this library under a commercial // Alternatively, you can license this library under a commercial
// license, as set out in <http://cesanta.com/products.html>. // license, as set out in <http://cesanta.com/products.html>.
#undef UNICODE // Use ANSI WinAPI functions
#undef _UNICODE // Use multibyte encoding on Windows #undef _UNICODE // Use multibyte encoding on Windows
#define _MBCS // Use multibyte encoding on Windows #define _MBCS // Use multibyte encoding on Windows
#define _INTEGRAL_MAX_BITS 64 // Enable _stati64() on Windows #define _INTEGRAL_MAX_BITS 64 // Enable _stati64() on Windows
...@@ -696,10 +697,10 @@ static pid_t start_process(char *interp, const char *cmd, const char *env, ...@@ -696,10 +697,10 @@ static pid_t start_process(char *interp, const char *cmd, const char *env,
} }
if (interp != NULL) { if (interp != NULL) {
GetFullPathNameA(interp, sizeof(buf), buf, NULL); GetFullPathName(interp, sizeof(buf), buf, NULL);
interp = buf; interp = buf;
} }
GetFullPathNameA(dir, sizeof(full_dir), full_dir, NULL); GetFullPathName(dir, sizeof(full_dir), full_dir, NULL);
mg_snprintf(cmdline, sizeof(cmdline), "%s%s\"%s\"", mg_snprintf(cmdline, sizeof(cmdline), "%s%s\"%s\"",
interp ? interp : "", interp ? " " : "", cmd); interp ? interp : "", interp ? " " : "", cmd);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment