Skip to content

Commit 3e1cdd4

Browse files
win,src: fix GetModuleHandle for libnode.dll (#3139)
Fixes: #3126
1 parent ee1d6fd commit 3e1cdd4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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 = GetModuleHandle(TEXT("libnode.dll"));
3333
if (m == NULL) m = GetModuleHandle(NULL);
3434
return (FARPROC) m;
3535
}

0 commit comments

Comments
 (0)