Skip to content
This repository has been archived by the owner on Apr 5, 2018. It is now read-only.

move HMODULE m declaration to top #12

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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