|
@@ -732,37 +732,31 @@ bool cmWin32ProcessExecution::CloseHandles()
|
|
|
bool ret = true;
|
|
bool ret = true;
|
|
|
if (this->hChildStdinRd && !CloseHandle(this->hChildStdinRd))
|
|
if (this->hChildStdinRd && !CloseHandle(this->hChildStdinRd))
|
|
|
{
|
|
{
|
|
|
- this->Output += "CloseHandleError\n";
|
|
|
|
|
ret = false;
|
|
ret = false;
|
|
|
}
|
|
}
|
|
|
this->hChildStdinRd = 0;
|
|
this->hChildStdinRd = 0;
|
|
|
if(this->hChildStdoutRdDup && !CloseHandle(this->hChildStdoutRdDup))
|
|
if(this->hChildStdoutRdDup && !CloseHandle(this->hChildStdoutRdDup))
|
|
|
{
|
|
{
|
|
|
- this->Output += "CloseHandleError\n";
|
|
|
|
|
ret = false;
|
|
ret = false;
|
|
|
}
|
|
}
|
|
|
this->hChildStdoutRdDup = 0;
|
|
this->hChildStdoutRdDup = 0;
|
|
|
if(this->hChildStderrRdDup && !CloseHandle(this->hChildStderrRdDup))
|
|
if(this->hChildStderrRdDup && !CloseHandle(this->hChildStderrRdDup))
|
|
|
{
|
|
{
|
|
|
- this->Output += "CloseHandleError\n";
|
|
|
|
|
ret = false;
|
|
ret = false;
|
|
|
}
|
|
}
|
|
|
this->hChildStderrRdDup = 0;
|
|
this->hChildStderrRdDup = 0;
|
|
|
if(this->hChildStdinWrDup && !CloseHandle(this->hChildStdinWrDup))
|
|
if(this->hChildStdinWrDup && !CloseHandle(this->hChildStdinWrDup))
|
|
|
{
|
|
{
|
|
|
- this->Output += "CloseHandleError\n";
|
|
|
|
|
ret = false;
|
|
ret = false;
|
|
|
}
|
|
}
|
|
|
this->hChildStdinWrDup = 0;
|
|
this->hChildStdinWrDup = 0;
|
|
|
if (this->hChildStdoutWr && !CloseHandle(this->hChildStdoutWr))
|
|
if (this->hChildStdoutWr && !CloseHandle(this->hChildStdoutWr))
|
|
|
{
|
|
{
|
|
|
- this->Output += "CloseHandleError\n";
|
|
|
|
|
ret = false;
|
|
ret = false;
|
|
|
}
|
|
}
|
|
|
this->hChildStdoutWr = 0;
|
|
this->hChildStdoutWr = 0;
|
|
|
if (this->hChildStderrWr && !CloseHandle(this->hChildStderrWr))
|
|
if (this->hChildStderrWr && !CloseHandle(this->hChildStderrWr))
|
|
|
{
|
|
{
|
|
|
- this->Output += "CloseHandleError\n";
|
|
|
|
|
ret = false;
|
|
ret = false;
|
|
|
}
|
|
}
|
|
|
this->hChildStderrWr = 0;
|
|
this->hChildStderrWr = 0;
|