diff options
author | Giampaolo Rodola <g.rodola@gmail.com> | 2020-10-31 15:37:31 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-10-31 15:37:31 +0100 |
commit | 9aba2efe6cee0a343002d0453674aca68a7b7aec (patch) | |
tree | 2b0b95c7711bcba4f3911ea44b9d9846a18380d4 /psutil/_psutil_common.c | |
parent | 40abe5c0aa3e258161284b58cedcee1e11a66e75 (diff) | |
download | psutil-9aba2efe6cee0a343002d0453674aca68a7b7aec.tar.gz |
Fix py 3.9 [WinError 998] Invalid access to memory location (#1866)
Diffstat (limited to 'psutil/_psutil_common.c')
-rw-r--r-- | psutil/_psutil_common.c | 7 |
1 files changed, 0 insertions, 7 deletions
diff --git a/psutil/_psutil_common.c b/psutil/_psutil_common.c index f821aba3..4178e0c0 100644 --- a/psutil/_psutil_common.c +++ b/psutil/_psutil_common.c @@ -199,13 +199,6 @@ int PSUTIL_WINVER; SYSTEM_INFO PSUTIL_SYSTEM_INFO; CRITICAL_SECTION PSUTIL_CRITICAL_SECTION; -#define NT_FACILITY_MASK 0xfff -#define NT_FACILITY_SHIFT 16 -#define NT_FACILITY(Status) \ - ((((ULONG)(Status)) >> NT_FACILITY_SHIFT) & NT_FACILITY_MASK) -#define NT_NTWIN32(status) (NT_FACILITY(Status) == FACILITY_WIN32) -#define WIN32_FROM_NTSTATUS(Status) (((ULONG)(Status)) & 0xffff) - // A wrapper around GetModuleHandle and GetProcAddress. PVOID |