Skip to content

Commit

Permalink
set proper NTSTATUS error code
Browse files Browse the repository at this point in the history
  • Loading branch information
giampaolo committed Jan 18, 2020
1 parent e65cc95 commit 33fea55
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion psutil/arch/windows/process_handles.c
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ psutil_get_filename(LPVOID lpvParam) {
} while (--attempts);

if (! NT_SUCCESS(status)) {
PyErr_SetFromOSErrnoWithSyscall("NtQuerySystemInformation");
psutil_SetFromNTStatusErr(status, "NtQuerySystemInformation");
FREE(globalFileName);
globalFileName = NULL;
return 1;
Expand Down

0 comments on commit 33fea55

Please sign in to comment.