Skip to content

Commit 60e50ce

Browse files
Cong Liurogerwang
authored andcommitted
fixed nw-gyp build failure with UNICODE set
see nwjs/nw-gyp#100
1 parent bab230c commit 60e50ce

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tools/win_delay_load_hook.cc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,8 +31,8 @@ static FARPROC WINAPI load_exe_hook(unsigned int event, DelayLoadInfo* info) {
3131
return ret;
3232
}
3333
if (event == dliStartProcessing) {
34-
node_dll = GetModuleHandle("node.dll");
35-
nw_dll = GetModuleHandle("nw.dll");
34+
node_dll = GetModuleHandleA("node.dll");
35+
nw_dll = GetModuleHandleA("nw.dll");
3636
return NULL;
3737
}
3838
if (event != dliNotePreLoadLibrary)

0 commit comments

Comments
 (0)