taskmgr: Use exit code 1 when terminating processes.
This commit is contained in:
parent
9a8e628d70
commit
2da1126021
1 changed files with 2 additions and 2 deletions
|
@ -83,7 +83,7 @@ void ProcessPage_OnEndProcess(void)
|
|||
return;
|
||||
}
|
||||
|
||||
if (!TerminateProcess(hProcess, 0))
|
||||
if (!TerminateProcess(hProcess, 1))
|
||||
{
|
||||
GetLastErrorText(wstrErrorText, ARRAY_SIZE(wstrErrorText));
|
||||
MessageBoxW(hMainWnd, wstrErrorText,wszUnable2Terminate, MB_OK|MB_ICONSTOP);
|
||||
|
@ -133,7 +133,7 @@ void ProcessPage_OnEndProcessTree(void)
|
|||
return;
|
||||
}
|
||||
|
||||
if (!TerminateProcess(hProcess, 0))
|
||||
if (!TerminateProcess(hProcess, 1))
|
||||
{
|
||||
GetLastErrorText(wstrErrorText, ARRAY_SIZE(wstrErrorText));
|
||||
MessageBoxW(hMainWnd, wstrErrorText,wszUnable2Terminate, MB_OK|MB_ICONSTOP);
|
||||
|
|
Loading…
Add table
Reference in a new issue