diff options
author | Cheng Zhao <zcbenz@gmail.com> | 2014-12-31 12:38:08 -0800 |
---|---|---|
committer | Bert Belder <bertbelder@gmail.com> | 2015-01-07 23:38:28 +0100 |
commit | 604b876147075934ecfce61fbe915648134cfdf5 (patch) | |
tree | 473948afe6ce15c5dddde7f74c3da04a9f960c5e /src/node_win32_etw_provider.cc | |
parent | cbf76c1f2f0e36a707e70cf9c6a8a251b6ac3f26 (diff) | |
download | android-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 'src/node_win32_etw_provider.cc')
-rw-r--r-- | src/node_win32_etw_provider.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/node_win32_etw_provider.cc b/src/node_win32_etw_provider.cc index 1941b5a566..69bf7fcb07 100644 --- a/src/node_win32_etw_provider.cc +++ b/src/node_win32_etw_provider.cc @@ -167,7 +167,7 @@ void NTAPI etw_events_enable_callback( void init_etw() { events_enabled = 0; - advapi = LoadLibrary("advapi32.dll"); + advapi = LoadLibraryW(L"advapi32.dll"); if (advapi) { event_register = (EventRegisterFunc) GetProcAddress(advapi, "EventRegister"); |