win,node-gyp: make delay-load hook C89 compliant
This fixes building compiled addons with Visual Studio 2010. PR-URL: https://github.com/TooTallNate/node-gyp/pull/616 Reviewed-By: Bert Belder <bertbelder@gmail.com>
This commit is contained in:
parent
c1de6d249e
commit
0d6d3dda95
3
deps/npm/node_modules/node-gyp/src/win_delay_load_hook.c
generated
vendored
3
deps/npm/node_modules/node-gyp/src/win_delay_load_hook.c
generated
vendored
@ -16,6 +16,7 @@
|
||||
#include <string.h>
|
||||
|
||||
static FARPROC WINAPI load_exe_hook(unsigned int event, DelayLoadInfo* info) {
|
||||
HMODULE m;
|
||||
if (event != dliNotePreLoadLibrary)
|
||||
return NULL;
|
||||
|
||||
@ -23,7 +24,7 @@ static FARPROC WINAPI load_exe_hook(unsigned int event, DelayLoadInfo* info) {
|
||||
_stricmp(info->szDll, "node.exe") != 0)
|
||||
return NULL;
|
||||
|
||||
HMODULE m = GetModuleHandle(NULL);
|
||||
m = GetModuleHandle(NULL);
|
||||
return (FARPROC) m;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user