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; } }