diff options
Diffstat (limited to 'llvm/lib/System/Win32/Program.inc')
-rw-r--r-- | llvm/lib/System/Win32/Program.inc | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/llvm/lib/System/Win32/Program.inc b/llvm/lib/System/Win32/Program.inc index 87f9e64e4c5..af6cce6de1a 100644 --- a/llvm/lib/System/Win32/Program.inc +++ b/llvm/lib/System/Win32/Program.inc @@ -347,7 +347,12 @@ Program::Kill(std::string* ErrMsg) { } HANDLE hProcess = reinterpret_cast<HANDLE>(Data_); - return TerminateProcess(hProcess, 1); + if (TerminateProcess(hProcess, 1) == 0) { + MakeErrMsg(ErrMsg, "The process couldn't be killed!"); + return true; + } + + return false; } bool Program::ChangeStdinToBinary(){ |