diff options
author | Giampaolo Rodola <g.rodola@gmail.com> | 2020-01-06 14:08:03 -0800 |
---|---|---|
committer | Giampaolo Rodola <g.rodola@gmail.com> | 2020-01-06 14:08:03 -0800 |
commit | 56525b5299d3fd2830cf479df52cb5f527aeed66 (patch) | |
tree | 94c3d4af63db40d0e8c1c60fd0a693a4ad74df36 /psutil/_psutil_windows.c | |
parent | 5aedd552404c5c19cd0412c02f3292d8b952e8d4 (diff) | |
download | psutil-56525b5299d3fd2830cf479df52cb5f527aeed66.tar.gz |
fix #1656: [Windows] Process.memory_full_info() raises AccessDenied even for the current user and os.getpid()
Diffstat (limited to 'psutil/_psutil_windows.c')
-rw-r--r-- | psutil/_psutil_windows.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/psutil/_psutil_windows.c b/psutil/_psutil_windows.c index 0e780d9b..228566ac 100644 --- a/psutil/_psutil_windows.c +++ b/psutil/_psutil_windows.c @@ -655,7 +655,7 @@ psutil_proc_memory_uss(PyObject *self, PyObject *args) { if (! PyArg_ParseTuple(args, "l", &pid)) return NULL; - hProcess = psutil_handle_from_pid(pid, PROCESS_QUERY_LIMITED_INFORMATION); + hProcess = psutil_handle_from_pid(pid, PROCESS_QUERY_INFORMATION); if (hProcess == NULL) return NULL; |