summaryrefslogtreecommitdiff
path: root/src/win32
diff options
context:
space:
mode:
authorChristian Pointner <equinox@anytun.org>2010-02-04 21:32:45 +0000
committerChristian Pointner <equinox@anytun.org>2010-02-04 21:32:45 +0000
commitd83412e9d4ff5a11eb128de5079c465a63709541 (patch)
tree7c1e83a2fe2c75556e9ec55d0f9917c987e4b62b /src/win32
parentfixed build on posix (diff)
some cleanup
Diffstat (limited to 'src/win32')
-rw-r--r--src/win32/sysExec.hpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/win32/sysExec.hpp b/src/win32/sysExec.hpp
index d04ed40..eba26f4 100644
--- a/src/win32/sysExec.hpp
+++ b/src/win32/sysExec.hpp
@@ -67,13 +67,13 @@ bool endsWith(std::string const& string, std::string const& suffix) {
return string.find(suffix, string.size() - suffix.size()) != std::string::npos;
}
-void SysExec::doExec(std::string const& script, StringVector const& args, StringList const& env)
+void SysExec::doExec(StringVector const& args, StringList const& env)
{
std::vector<char> arguments;
bool isBatchFile = false;
for(int i = 0; i < BATCH_FILE_EXTS_COUNT; ++i) {
- if(endsWith(script, BATCH_FILE_EXTS[i])) {
+ if(endsWith(script_, BATCH_FILE_EXTS[i])) {
isBatchFile = true;
break;
}
@@ -84,7 +84,7 @@ void SysExec::doExec(std::string const& script, StringVector const& args, String
arguments.insert(arguments.end(), BATCH_INTERPRETER.begin(), BATCH_INTERPRETER.end());
}
arguments.push_back('\"');
- arguments.insert(arguments.end(), script.begin(), script.end());
+ arguments.insert(arguments.end(), script_.begin(), script_.end());
arguments.push_back('\"');
arguments.push_back(' ');
@@ -126,7 +126,7 @@ void SysExec::doExec(std::string const& script, StringVector const& args, String
&process_info_
))
{
- cLog.msg(Log::PRIO_ERROR) << "executing script '" << script << "' CreateProcess() error: " << GetLastError();
+ cLog.msg(Log::PRIO_ERROR) << "executing script '" << script_ << "' CreateProcess() error: " << GetLastError();
return;
}
}