summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--psutil/_psutil_windows.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/psutil/_psutil_windows.c b/psutil/_psutil_windows.c
index 30bd96cb..b5b5a8f5 100644
--- a/psutil/_psutil_windows.c
+++ b/psutil/_psutil_windows.c
@@ -788,7 +788,7 @@ psutil_proc_exe(PyObject *self, PyObject *args) {
#else // Windows XP
if (GetProcessImageFileNameW(hProcess, exe, MAX_PATH) == 0) {
// see: https://github.com/giampaolo/psutil/issues/1394
- if (GetLastError() == 0) {
+ if (GetLastError() == 0)
PyErr_SetFromWindowsErr(ERROR_ACCESS_DENIED);
else
PyErr_SetFromWindowsErr(0);