diff options
author | Jeff Mears <jmears@blizzard.com> | 2021-08-06 14:27:42 -0700 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2021-08-09 14:08:42 +0200 |
commit | 76e047fc27b3a0b9e6d6d00cacf536e7b7c1b532 (patch) | |
tree | c89d56b7e41d528206edfff8f78568869ed30c4d /lib/easy.c | |
parent | 3e2a229783b8a8efe88574ec3b6e8c9d060e40e8 (diff) | |
download | curl-76e047fc27b3a0b9e6d6d00cacf536e7b7c1b532.tar.gz |
easy: use a custom implementation of wcsdup on Windows
... so that malloc/free overrides from curl_global_init are used for
wcsdup correctly.
Closes #7540
Diffstat (limited to 'lib/easy.c')
-rw-r--r-- | lib/easy.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/easy.c b/lib/easy.c index 588b1fb47..2aca93845 100644 --- a/lib/easy.c +++ b/lib/easy.c @@ -117,7 +117,7 @@ curl_realloc_callback Curl_crealloc = (curl_realloc_callback)realloc; curl_strdup_callback Curl_cstrdup = (curl_strdup_callback)system_strdup; curl_calloc_callback Curl_ccalloc = (curl_calloc_callback)calloc; #if defined(WIN32) && defined(UNICODE) -curl_wcsdup_callback Curl_cwcsdup = (curl_wcsdup_callback)_wcsdup; +curl_wcsdup_callback Curl_cwcsdup = Curl_wcsdup; #endif #if defined(_MSC_VER) && defined(_DLL) && !defined(__POCC__) |