Change return type of evutil_load_windows_system_library_ to HMODULE

Noted by Miles Chan as issue #146
This commit is contained in:
Nick Mathewson 2014-08-29 14:28:09 -04:00
parent 2c82aa0fef
commit f691389e82
3 changed files with 4 additions and 4 deletions

View File

@ -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];

View File

@ -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);

View File

@ -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