diff --git a/Foundation/src/Process_WIN32.cpp b/Foundation/src/Process_WIN32.cpp index e1989c333..d96d79659 100644 --- a/Foundation/src/Process_WIN32.cpp +++ b/Foundation/src/Process_WIN32.cpp @@ -247,7 +247,7 @@ void ProcessImpl::killImpl(PIDImpl pid) { case ERROR_ACCESS_DENIED: throw NoPermissionException("cannot kill process"); - case ERROR_NOT_FOUND: + case ERROR_INVALID_PARAMETER: throw NotFoundException("cannot kill process"); default: throw SystemException("cannot kill process"); diff --git a/Foundation/src/Process_WIN32U.cpp b/Foundation/src/Process_WIN32U.cpp index 226ffabe2..f07efbb55 100644 --- a/Foundation/src/Process_WIN32U.cpp +++ b/Foundation/src/Process_WIN32U.cpp @@ -253,7 +253,7 @@ void ProcessImpl::killImpl(PIDImpl pid) { case ERROR_ACCESS_DENIED: throw NoPermissionException("cannot kill process"); - case ERROR_NOT_FOUND: + case ERROR_INVALID_PARAMETER: throw NotFoundException("cannot kill process"); default: throw SystemException("cannot kill process");