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:
Nick Mathewson 2010-08-06 17:13:27 -04:00
parent 28f31a4f8d
commit 5fa30d2bf4

View File

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