Skip to content

Commit

Permalink
move HMODULE m declaration to top
Browse files Browse the repository at this point in the history
  • Loading branch information
cosmosgenius committed Apr 26, 2015
1 parent fbe8c26 commit c022c80
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/win_delay_load_hook.c
Original file line number Diff line number Diff line change
Expand Up @@ -16,14 +16,15 @@
#include <string.h>

static FARPROC WINAPI load_exe_hook(unsigned int event, DelayLoadInfo* info) {
HMODULE m;
if (event != dliNotePreLoadLibrary)
return NULL;

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

HMODULE m = GetModuleHandle(NULL);
m = GetModuleHandle(NULL);
return (FARPROC) m;
}

Expand Down

0 comments on commit c022c80

Please sign in to comment.