mirror of
https://github.com/cuberite/libevent.git
synced 2025-09-09 12:28:19 -04:00
Change return type of evutil_load_windows_system_library_ to HMODULE
Noted by Miles Chan as issue #146
This commit is contained in:
parent
2c82aa0fef
commit
f691389e82
4
evutil.c
4
evutil.c
@ -652,7 +652,7 @@ evutil_check_ifaddrs(void)
|
||||
"GetAdaptersInfo", but that's deprecated; let's just try
|
||||
GetAdaptersAddresses and fall back to connect+getsockname.
|
||||
*/
|
||||
HANDLE lib = evutil_load_windows_system_library_(TEXT("ihplapi.dll"));
|
||||
HMODULE lib = evutil_load_windows_system_library_(TEXT("ihplapi.dll"));
|
||||
GetAdaptersAddresses_fn_t fn;
|
||||
ULONG size, res;
|
||||
IP_ADAPTER_ADDRESSES *addresses = NULL, *address;
|
||||
@ -2453,7 +2453,7 @@ evutil_hex_char_to_int_(char c)
|
||||
}
|
||||
|
||||
#ifdef _WIN32
|
||||
HANDLE
|
||||
HMODULE
|
||||
evutil_load_windows_system_library_(const TCHAR *library_name)
|
||||
{
|
||||
TCHAR path[MAX_PATH];
|
||||
|
@ -1121,7 +1121,7 @@ end:
|
||||
static void
|
||||
test_evutil_loadsyslib(void *arg)
|
||||
{
|
||||
HANDLE h=NULL;
|
||||
HMODULE h=NULL;
|
||||
|
||||
h = evutil_load_windows_system_library_(TEXT("kernel32.dll"));
|
||||
tt_assert(h);
|
||||
|
@ -392,7 +392,7 @@ void evutil_free_secure_rng_globals_(void);
|
||||
void evutil_free_globals_(void);
|
||||
|
||||
#ifdef _WIN32
|
||||
HANDLE evutil_load_windows_system_library_(const TCHAR *library_name);
|
||||
HMODULE evutil_load_windows_system_library_(const TCHAR *library_name);
|
||||
#endif
|
||||
|
||||
#ifndef EV_SIZE_FMT
|
||||
|
Loading…
x
Reference in New Issue
Block a user