mirror of
https://github.com/cesanta/mongoose.git
synced 2025-01-20 17:03:12 +08:00
Added CommonProgramFiles(x86) to the CGI environment under Win32, to make Win32::OLE work under CGI
This commit is contained in:
parent
b0eeb7d67b
commit
d67b1dbd53
@ -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);
|
||||||
|
Loading…
Reference in New Issue
Block a user