mirror of
https://github.com/cuberite/libevent.git
synced 2025-09-15 15:25:09 -04:00
Fix evdns build with -DUNICODE
It turns out that GetProcAddress always takes its second argument as a C string, regardless of whether unicode is on or not.
This commit is contained in:
parent
28f31a4f8d
commit
5fa30d2bf4
2
evdns.c
2
evdns.c
@ -3507,7 +3507,7 @@ load_nameservers_with_getnetworkparams(struct evdns_base *base)
|
||||
status = -1;
|
||||
goto done;
|
||||
}
|
||||
if (!(fn = (GetNetworkParams_fn_t) GetProcAddress(handle, TEXT("GetNetworkParams")))) {
|
||||
if (!(fn = (GetNetworkParams_fn_t) GetProcAddress(handle, "GetNetworkParams"))) {
|
||||
log(EVDNS_LOG_WARN, "Could not get address of function.");
|
||||
status = -1;
|
||||
goto done;
|
||||
|
Loading…
x
Reference in New Issue
Block a user