Skip to content

Commit c022c80

Browse files
committed
move HMODULE m declaration to top
1 parent fbe8c26 commit c022c80

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

‎src/win_delay_load_hook.c‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,14 +16,15 @@
1616
#include <string.h>
1717

1818
static FARPROC WINAPI load_exe_hook(unsigned int event, DelayLoadInfo* info) {
19+
HMODULE m;
1920
if (event != dliNotePreLoadLibrary)
2021
return NULL;
2122

2223
if (_stricmp(info->szDll, "iojs.exe") != 0 &&
2324
_stricmp(info->szDll, "node.exe") != 0)
2425
return NULL;
2526

26-
HMODULE m = GetModuleHandle(NULL);
27+
m = GetModuleHandle(NULL);
2728
return (FARPROC) m;
2829
}
2930

0 commit comments

Comments
 (0)