Skip to content
Snippets Groups Projects
Commit d67b1dbd authored by Sergey Lyubka's avatar Sergey Lyubka
Browse files

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

parent b0eeb7d6
No related branches found
No related tags found
No related merge requests found
...@@ -3357,6 +3357,9 @@ static void prepare_cgi_environment(struct mg_connection *conn, ...@@ -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);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment