return wxKILL_OK in krc instead of leaving it unchanged
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_4_BRANCH@20144 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -829,6 +829,9 @@ int wxKill(long pid, wxSignal sig, wxKillError *krc)
|
||||
if ( ok && rc == STILL_ACTIVE )
|
||||
{
|
||||
// there is such process => success
|
||||
if ( krc )
|
||||
*krc = wxKILL_OK;
|
||||
|
||||
return 0;
|
||||
}
|
||||
}
|
||||
@@ -837,6 +840,9 @@ int wxKill(long pid, wxSignal sig, wxKillError *krc)
|
||||
if ( ok && rc != STILL_ACTIVE )
|
||||
{
|
||||
// killed => success
|
||||
if ( krc )
|
||||
*krc = wxKILL_OK;
|
||||
|
||||
return 0;
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user