taskmgr: Use exit code 1 when terminating processes.

This commit is contained in:
Brendan Shanks 2023-02-01 13:34:38 -08:00 committed by Alexandre Julliard
parent 9a8e628d70
commit 2da1126021

View file

@ -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);