Skip to content

Commit

Permalink
Merge pull request #616 from cosmosgenius/win-c89-compile-fix
Browse files Browse the repository at this point in the history
move HMODULE m declaration to top
  • Loading branch information
TooTallNate committed May 19, 2015
2 parents 19e829b + c022c80 commit 7ea00c9
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 7ea00c9

Please sign in to comment.