git-svn-id: svn://db.shs.com.ru/pip@270 12ceb7fc-bf1f-11e4-8940-5bc7170c53b5

This commit is contained in:
2016-09-26 09:23:27 +00:00
parent 7264ef12f6
commit 54895bfd78
3 changed files with 20 additions and 21 deletions

View File

@@ -64,8 +64,8 @@ void PIProcess::startProc(bool detached) {
//cout << "run" << endl;
PIString str;
/// arguments convertion
int as = 0;
#ifdef WINDOWS
int as = 0;
//args.pop_front();
piForeachC (PIString & i, args)
as += i.lengthAscii() + 3;
@@ -135,7 +135,8 @@ void PIProcess::startProc(bool detached) {
if (g_out) tf_out = freopen(f_out.path().data(), "w", stdout);
if (g_err) tf_err = freopen(f_err.path().data(), "w", stderr);
#ifndef WINDOWS
if (!wd.isEmpty()) as = chdir(wd.data());
int as2;
if (!wd.isEmpty()) as2 = chdir(wd.data());
#endif
#ifdef WINDOWS
GetStartupInfoA(&si);