mirror of
https://github.com/cuberite/libevent.git
synced 2025-08-04 09:46:23 -04:00
There is typo in GetAdaptersAddresses windows library. It should be iphlpapi.dll
(cherry picked from commit 61fc2bf2e9719eb7ca9c56b6e186df2f79f05de7)
This commit is contained in:
parent
2530e7c630
commit
891adda9f1
2
evutil.c
2
evutil.c
@ -698,7 +698,7 @@ evutil_check_ifaddrs(void)
|
|||||||
"GetAdaptersInfo", but that's deprecated; let's just try
|
"GetAdaptersInfo", but that's deprecated; let's just try
|
||||||
GetAdaptersAddresses and fall back to connect+getsockname.
|
GetAdaptersAddresses and fall back to connect+getsockname.
|
||||||
*/
|
*/
|
||||||
HMODULE lib = evutil_load_windows_system_library_(TEXT("ihplapi.dll"));
|
HMODULE lib = evutil_load_windows_system_library_(TEXT("iphlpapi.dll"));
|
||||||
GetAdaptersAddresses_fn_t fn;
|
GetAdaptersAddresses_fn_t fn;
|
||||||
ULONG size, res;
|
ULONG size, res;
|
||||||
IP_ADAPTER_ADDRESSES *addresses = NULL, *address;
|
IP_ADAPTER_ADDRESSES *addresses = NULL, *address;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user