From 5fa30d2bf443e9fc4c6ab9bf01f761006b97132d Mon Sep 17 00:00:00 2001 From: Nick Mathewson Date: Fri, 6 Aug 2010 17:13:27 -0400 Subject: [PATCH] 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. --- evdns.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/evdns.c b/evdns.c index 16849ead..1f8c290f 100644 --- a/evdns.c +++ b/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;