Commit b59ff5ee authored by Brendan Shanks's avatar Brendan Shanks Committed by Alexandre Julliard

taskmgr: Use exit code 1 when terminating processes.

(cherry picked from commit 2da11260)
parent cbc1ba2d
...@@ -83,7 +83,7 @@ void ProcessPage_OnEndProcess(void) ...@@ -83,7 +83,7 @@ void ProcessPage_OnEndProcess(void)
return; return;
} }
if (!TerminateProcess(hProcess, 0)) if (!TerminateProcess(hProcess, 1))
{ {
GetLastErrorText(wstrErrorText, ARRAY_SIZE(wstrErrorText)); GetLastErrorText(wstrErrorText, ARRAY_SIZE(wstrErrorText));
MessageBoxW(hMainWnd, wstrErrorText,wszUnable2Terminate, MB_OK|MB_ICONSTOP); MessageBoxW(hMainWnd, wstrErrorText,wszUnable2Terminate, MB_OK|MB_ICONSTOP);
...@@ -133,7 +133,7 @@ void ProcessPage_OnEndProcessTree(void) ...@@ -133,7 +133,7 @@ void ProcessPage_OnEndProcessTree(void)
return; return;
} }
if (!TerminateProcess(hProcess, 0)) if (!TerminateProcess(hProcess, 1))
{ {
GetLastErrorText(wstrErrorText, ARRAY_SIZE(wstrErrorText)); GetLastErrorText(wstrErrorText, ARRAY_SIZE(wstrErrorText));
MessageBoxW(hMainWnd, wstrErrorText,wszUnable2Terminate, MB_OK|MB_ICONSTOP); MessageBoxW(hMainWnd, wstrErrorText,wszUnable2Terminate, MB_OK|MB_ICONSTOP);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment