From 12d2cf222701f98b0b45de85e1175055466042c8 Mon Sep 17 00:00:00 2001 From: Cong Liu Date: Tue, 8 Nov 2016 17:11:48 +0800 Subject: [PATCH] fixed build failure when UNICODE is defined fixed #100 --- src/win_delay_load_hook.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/win_delay_load_hook.cc b/src/win_delay_load_hook.cc index 39290d41a8..7bfbd34347 100644 --- a/src/win_delay_load_hook.cc +++ b/src/win_delay_load_hook.cc @@ -31,8 +31,8 @@ static FARPROC WINAPI load_exe_hook(unsigned int event, DelayLoadInfo* info) { return ret; } if (event == dliStartProcessing) { - node_dll = GetModuleHandle("node.dll"); - nw_dll = GetModuleHandle("nw.dll"); + node_dll = GetModuleHandleA("node.dll"); + nw_dll = GetModuleHandleA("nw.dll"); return NULL; } if (event != dliNotePreLoadLibrary)