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)