From dc55a3ae40e821015b4fa7b6ac718e8fe9bd2d89 Mon Sep 17 00:00:00 2001 From: Sergey Lyubka Date: Wed, 8 Jan 2014 18:10:15 +0000 Subject: [PATCH 1/2] Added #undef UNICODE in mongoose.c to force ANSI Win32 functions --- mongoose.c | 1 + 1 file changed, 1 insertion(+) diff --git a/mongoose.c b/mongoose.c index dce08570..10359084 100644 --- a/mongoose.c +++ b/mongoose.c @@ -15,6 +15,7 @@ // Alternatively, you can license this library under a commercial // license, as set out in . +#undef UNICODE // Use ANSI WinAPI functions #undef _UNICODE // Use multibyte encoding on Windows #define _MBCS // Use multibyte encoding on Windows #define _INTEGRAL_MAX_BITS 64 // Enable _stati64() on Windows From 842231cc5c0591a56073f9451127b6629595a0a3 Mon Sep 17 00:00:00 2001 From: Sergey Lyubka Date: Wed, 8 Jan 2014 18:20:13 +0000 Subject: [PATCH 2/2] GetFullPathNameA -> GetFullPathName --- mongoose.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/mongoose.c b/mongoose.c index 10359084..da554352 100644 --- a/mongoose.c +++ b/mongoose.c @@ -697,10 +697,10 @@ static pid_t start_process(char *interp, const char *cmd, const char *env, } if (interp != NULL) { - GetFullPathNameA(interp, sizeof(buf), buf, NULL); + GetFullPathName(interp, sizeof(buf), buf, NULL); 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\"", interp ? interp : "", interp ? " " : "", cmd);