diff options
author | ewedlund <ewedlund@users.noreply.github.com> | 2016-08-25 11:11:36 +0200 |
---|---|---|
committer | ewedlund <ewedlund@users.noreply.github.com> | 2016-08-25 11:11:36 +0200 |
commit | 0199fad17af0440f3fa9bfcee5b597670f5ef5a0 (patch) | |
tree | 818b3b9fd23d660a324fea440ec74f988574c25c | |
parent | ca99931d7547e8d2fae4a222f40afca3c8ea3d2d (diff) | |
download | psutil-0199fad17af0440f3fa9bfcee5b597670f5ef5a0.tar.gz |
Windows 7 -> Windows Vista
-rw-r--r-- | psutil/_psutil_windows.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/psutil/_psutil_windows.c b/psutil/_psutil_windows.c index 4d918bdb..7b3712a0 100644 --- a/psutil/_psutil_windows.c +++ b/psutil/_psutil_windows.c @@ -2918,7 +2918,7 @@ psutil_net_if_addrs(PyObject *self, PyObject *args) { char netmask_buff[100]; DWORD netmask_bufflen = 100; DWORD dwRetVal = 0; -#if (_WIN32_WINNT >= 0x0601) // Windows 7 +#if (_WIN32_WINNT >= 0x0600) // Windows Vista and above ULONG converted_netmask; UINT netmask_bits; struct in_addr in_netmask; @@ -3007,7 +3007,7 @@ psutil_net_if_addrs(PyObject *self, PyObject *args) { pUnicast->Address.lpSockaddr; intRet = inet_ntop(AF_INET, &(sa_in->sin_addr), buff, bufflen); -#if (_WIN32_WINNT >= 0x0601) // Windows 7 +#if (_WIN32_WINNT >= 0x0600) // Windows Vista and above netmask_bits = pUnicast->OnLinkPrefixLength; dwRetVal = ConvertLengthToIpv4Mask(netmask_bits, &converted_netmask); if (dwRetVal == NO_ERROR) { |