From 7a7fb211dc8cc2558a31cb804084933fa3cb3d3a Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Fri, 11 Apr 2003 22:32:44 +0000 Subject: [PATCH] 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 --- src/msw/utils.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/msw/utils.cpp b/src/msw/utils.cpp index fa9c9d6468..fa1fe77f4c 100644 --- a/src/msw/utils.cpp +++ b/src/msw/utils.cpp @@ -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; } }