Fix network build
This commit is contained in:
parent
fe100ef263
commit
5b9feb6fdc
|
@ -316,7 +316,8 @@ static BOOL RealPopenCreateProcess(const char *cmdstring,
|
||||||
x = i + (int)strlen(s3) + (int)strlen(cmdstring) + 1;
|
x = i + (int)strlen(s3) + (int)strlen(cmdstring) + 1;
|
||||||
s2 = (char *)_alloca(x);
|
s2 = (char *)_alloca(x);
|
||||||
ZeroMemory(s2, x);
|
ZeroMemory(s2, x);
|
||||||
sprintf(s2, "%s%s%s", s1, s3, cmdstring);
|
//sprintf(s2, "%s%s%s", s1, s3, cmdstring);
|
||||||
|
sprintf(s2, "%s", cmdstring);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
@ -404,6 +405,7 @@ static BOOL RealPopenCreateProcess(const char *cmdstring,
|
||||||
siStartInfo.hStdError = hStderr;
|
siStartInfo.hStdError = hStderr;
|
||||||
siStartInfo.wShowWindow = SW_HIDE;
|
siStartInfo.wShowWindow = SW_HIDE;
|
||||||
|
|
||||||
|
//std::cout << "Create process: " << s2 << std::endl;
|
||||||
if (CreateProcess(NULL,
|
if (CreateProcess(NULL,
|
||||||
s2,
|
s2,
|
||||||
NULL,
|
NULL,
|
||||||
|
|
Loading…
Reference in New Issue