]> granicus.if.org Git - libevent/commitdiff
Fix evdns build with -DUNICODE
authorNick Mathewson <nickm@torproject.org>
Fri, 6 Aug 2010 21:13:27 +0000 (17:13 -0400)
committerNick Mathewson <nickm@torproject.org>
Fri, 6 Aug 2010 21:13:27 +0000 (17:13 -0400)
It turns out that GetProcAddress always takes its second argument as
a C string, regardless of whether unicode is on or not.

evdns.c

diff --git a/evdns.c b/evdns.c
index 16849ead40d383a7bac22bc0bbc0baa02c5a09db..1f8c290f6cb719aaa3b4aceddaf2f728e28aa1cb 100644 (file)
--- 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;