summaryrefslogtreecommitdiff
path: root/deps/cares
diff options
context:
space:
mode:
authorCheng Zhao <zcbenz@gmail.com>2014-12-31 12:38:08 -0800
committerBert Belder <bertbelder@gmail.com>2015-01-07 23:38:28 +0100
commit604b876147075934ecfce61fbe915648134cfdf5 (patch)
tree473948afe6ce15c5dddde7f74c3da04a9f960c5e /deps/cares
parentcbf76c1f2f0e36a707e70cf9c6a8a251b6ac3f26 (diff)
downloadandroid-node-v8-604b876147075934ecfce61fbe915648134cfdf5.tar.gz
android-node-v8-604b876147075934ecfce61fbe915648134cfdf5.tar.bz2
android-node-v8-604b876147075934ecfce61fbe915648134cfdf5.zip
src,deps: replace LoadLibrary by LoadLibraryW
On Windows, when compiling with `UNICODE` defined, `LoadLibrary` becomes `LoadLibraryW`. When an ASCII string is passed to that function it crashes. PR-URL: https://github.com/iojs/io.js/pull/226 Reviewed-By: Bert Belder <bertbelder@gmail.com>
Diffstat (limited to 'deps/cares')
-rw-r--r--deps/cares/src/ares_library_init.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/deps/cares/src/ares_library_init.c b/deps/cares/src/ares_library_init.c
index 770e7c2356..9114f62614 100644
--- a/deps/cares/src/ares_library_init.c
+++ b/deps/cares/src/ares_library_init.c
@@ -45,7 +45,7 @@ static int ares_win32_init(void)
#ifdef USE_WINSOCK
hnd_iphlpapi = 0;
- hnd_iphlpapi = LoadLibrary("iphlpapi.dll");
+ hnd_iphlpapi = LoadLibraryW(L"iphlpapi.dll");
if (!hnd_iphlpapi)
return ARES_ELOADIPHLPAPI;
@@ -73,7 +73,7 @@ static int ares_win32_init(void)
*/
hnd_advapi32 = 0;
- hnd_advapi32 = LoadLibrary("advapi32.dll");
+ hnd_advapi32 = LoadLibraryW(L"advapi32.dll");
if (hnd_advapi32)
{
ares_fpSystemFunction036 = (fpSystemFunction036_t)