Skip to content

Commit ad152bf

Browse files
win,src: fix GetModuleHandle for libnode.dll
Fixes: #3126
1 parent b21cf87 commit ad152bf

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/win_delay_load_hook.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ static FARPROC WINAPI load_exe_hook(unsigned int event, DelayLoadInfo* info) {
2929
return NULL;
3030

3131
// try for libnode.dll to compat node.js that using 'vcbuild.bat dll'
32-
m = GetModuleHandle("libnode.dll");
32+
m = GetModuleHandleA("libnode.dll");
3333
if (m == NULL) m = GetModuleHandle(NULL);
3434
return (FARPROC) m;
3535
}

0 commit comments

Comments
 (0)