summaryrefslogtreecommitdiff
path: root/src/win32/sysExec.hpp
diff options
context:
space:
mode:
authorChristian Pointner <equinox@anytun.org>2012-01-06 00:00:55 +0000
committerChristian Pointner <equinox@anytun.org>2012-01-06 00:00:55 +0000
commit1be43e24526b9adc23c8f1d1312aa31ceb024028 (patch)
tree737864e7905f3be8abafcf1a4feba0dd3c6edaab /src/win32/sysExec.hpp
parentbugfix build boost (diff)
some mingw build fixes (still not working)
Diffstat (limited to 'src/win32/sysExec.hpp')
-rw-r--r--src/win32/sysExec.hpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/win32/sysExec.hpp b/src/win32/sysExec.hpp
index 3807a63..0fe10f3 100644
--- a/src/win32/sysExec.hpp
+++ b/src/win32/sysExec.hpp
@@ -69,7 +69,7 @@ bool endsWith(std::string const& string, std::string const& suffix)
return string.find(suffix, string.size() - suffix.size()) != std::string::npos;
}
-void SysExec::doExec(StringVector args, StringList env)
+void SysExec::doExec(StringVector args, StringList env_param)
{
std::vector<char> arguments;
@@ -105,7 +105,7 @@ void SysExec::doExec(StringVector args, StringList env)
STARTUPINFOA startup_info = getStartupInfo();
std::map<std::string, std::string> envDict;
- for(StringList::const_iterator it = env.begin(); it != env.begin(); ++it) {
+ for(StringList::const_iterator it = env_param.begin(); it != env_param.begin(); ++it) {
size_t delimiter_pos = it->find('=');
envDict.insert(std::make_pair(it->substr(0, delimiter_pos), it->substr(delimiter_pos + 1)));
}