From d67b1dbd534d0cc2571489121f88d92b479971bb Mon Sep 17 00:00:00 2001 From: Sergey Lyubka <valenok@gmail.com> Date: Wed, 18 Sep 2013 08:11:37 +0100 Subject: [PATCH] Added CommonProgramFiles(x86) to the CGI environment under Win32, to make Win32::OLE work under CGI --- mongoose.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/mongoose.c b/mongoose.c index aa2ad6801..c0b6f5c45 100644 --- a/mongoose.c +++ b/mongoose.c @@ -3357,6 +3357,9 @@ static void prepare_cgi_environment(struct mg_connection *conn, if ((s = getenv("ProgramFiles(x86)")) != NULL) { addenv(blk, "ProgramFiles(x86)=%s", s); } + if ((s = getenv("CommonProgramFiles(x86)")) != NULL) { + addenv(blk, "CommonProgramFiles(x86)=%s", s); + } #else if ((s = getenv("LD_LIBRARY_PATH")) != NULL) addenv(blk, "LD_LIBRARY_PATH=%s", s); -- GitLab