diff options
author | Giampaolo Rodola <g.rodola@gmail.com> | 2017-11-17 14:08:52 +0100 |
---|---|---|
committer | Giampaolo Rodola <g.rodola@gmail.com> | 2017-11-17 14:08:52 +0100 |
commit | 967b08b842f487fece6ea758bbf61a7b9be9e17e (patch) | |
tree | 800ed231fb40b034abe35a8f7a211033a5516eea | |
parent | de7b7dc1f448268a6ca26504b424f552da3cd89d (diff) | |
download | psutil-c-excs-refact.tar.gz |
fix arg call on winc-excs-refact
-rw-r--r-- | psutil/_psutil_windows.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/psutil/_psutil_windows.c b/psutil/_psutil_windows.c index ce08aa9d..c840a2b7 100644 --- a/psutil/_psutil_windows.c +++ b/psutil/_psutil_windows.c @@ -335,7 +335,7 @@ psutil_proc_kill(PyObject *self, PyObject *args) { if (! PyArg_ParseTuple(args, "l", &pid)) return NULL; if (pid == 0) - return AccessDenied(); + return AccessDenied(""); hProcess = OpenProcess(PROCESS_TERMINATE, FALSE, pid); if (hProcess == NULL) { @@ -381,7 +381,7 @@ psutil_proc_wait(PyObject *self, PyObject *args) { if (! PyArg_ParseTuple(args, "ll", &pid, &timeout)) return NULL; if (pid == 0) - return AccessDenied(); + return AccessDenied(""); hProcess = OpenProcess(SYNCHRONIZE | PROCESS_QUERY_INFORMATION, FALSE, pid); @@ -1069,7 +1069,7 @@ psutil_proc_suspend_or_resume(DWORD pid, int suspend) { THREADENTRY32 te32 = {0}; if (pid == 0) { - AccessDenied(); + AccessDenied(""); return FALSE; } @@ -1171,7 +1171,7 @@ psutil_proc_threads(PyObject *self, PyObject *args) { if (pid == 0) { // raise AD instead of returning 0 as procexp is able to // retrieve useful information somehow - AccessDenied(); + AccessDenied(""); goto error; } |