diff options
author | Cheng Zhao <zcbenz@gmail.com> | 2014-12-31 12:38:08 -0800 |
---|---|---|
committer | Fedor Indutny <fedor@indutny.com> | 2016-02-08 14:44:40 -0500 |
commit | cfafba68c64fed0626af8b22d6c4cdccb3261ced (patch) | |
tree | a3e7312a4fb59b20dc1a0332b1ff206bfe1a9f32 /deps/cares | |
parent | 1258b0166dc6e68c2592be3410e54d5cb19bc04b (diff) | |
download | android-node-v8-cfafba68c64fed0626af8b22d6c4cdccb3261ced.tar.gz android-node-v8-cfafba68c64fed0626af8b22d6c4cdccb3261ced.tar.bz2 android-node-v8-cfafba68c64fed0626af8b22d6c4cdccb3261ced.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.c | 4 |
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 049dc3d7fa..c2bfb093e2 100644 --- a/deps/cares/src/ares_library_init.c +++ b/deps/cares/src/ares_library_init.c @@ -50,7 +50,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; @@ -78,7 +78,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) |