git-svn-id: svn://db.shs.com.ru/pip@270 12ceb7fc-bf1f-11e4-8940-5bc7170c53b5
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user