Added CommonProgramFiles(x86) to the CGI environment under Win32, to make Win32::OLE work under CGI

This commit is contained in:
Sergey Lyubka 2013-09-18 08:11:37 +01:00
parent b0eeb7d67b
commit d67b1dbd53

View File

@ -3357,6 +3357,9 @@ static void prepare_cgi_environment(struct mg_connection *conn,
if ((s = getenv("ProgramFiles(x86)")) != NULL) { if ((s = getenv("ProgramFiles(x86)")) != NULL) {
addenv(blk, "ProgramFiles(x86)=%s", s); addenv(blk, "ProgramFiles(x86)=%s", s);
} }
if ((s = getenv("CommonProgramFiles(x86)")) != NULL) {
addenv(blk, "CommonProgramFiles(x86)=%s", s);
}
#else #else
if ((s = getenv("LD_LIBRARY_PATH")) != NULL) if ((s = getenv("LD_LIBRARY_PATH")) != NULL)
addenv(blk, "LD_LIBRARY_PATH=%s", s); addenv(blk, "LD_LIBRARY_PATH=%s", s);