mirror of
https://github.com/cesanta/mongoose.git
synced 2026-11-28 20:58:31 +00:00
Added CommonProgramFiles(x86) to the CGI environment under Win32, to make Win32::OLE work under CGI
This commit is contained in:
1 parent
b0eeb7d67b
commit
d67b1dbd53
1 file changed
+3
@@ -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);
|
||||||
|
|||||||
Reference in new issue
Block a user