mirror of
https://github.com/cuberite/libevent.git
synced 2025-09-15 07:15:03 -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;
|
status = -1;
|
||||||
goto done;
|
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.");
|
log(EVDNS_LOG_WARN, "Could not get address of function.");
|
||||||
status = -1;
|
status = -1;
|
||||||
goto done;
|
goto done;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user