diff options
Diffstat (limited to 'psutil/arch/windows/process_info.c')
-rw-r--r-- | psutil/arch/windows/process_info.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/psutil/arch/windows/process_info.c b/psutil/arch/windows/process_info.c index 1d556473..5e0b9421 100644 --- a/psutil/arch/windows/process_info.c +++ b/psutil/arch/windows/process_info.c @@ -361,7 +361,7 @@ psutil_pid_is_running(DWORD pid) { // Be strict and raise an exception; the caller is supposed // to take -1 into account. else { - PyErr_SetFromWindowsErr(err); + PyErr_SetFromOSErrnoWithSyscall("OpenProcess(PROCESS_VM_READ)"); return -1; } } @@ -395,7 +395,7 @@ psutil_pid_is_running(DWORD pid) { return 1; } else { - PyErr_SetFromWindowsErr(err); + PyErr_SetFromOSErrnoWithSyscall("GetExitCodeProcess"); return -1; } } |