summaryrefslogtreecommitdiff
path: root/deps/npm/node_modules/node-gyp/src
diff options
context:
space:
mode:
authorForrest L Norvell <forrest@npmjs.com>2015-05-01 01:27:33 -0700
committerForrest L Norvell <forrest@npmjs.com>2015-05-01 16:05:03 -0700
commit56e4255382ad4d2426e034624b41bbe97d18bca0 (patch)
treea4efb056d4a8b356cc232f31e00454834f0a6485 /deps/npm/node_modules/node-gyp/src
parentb4ad5d7050581fe615dab0ec8ef23c83bd965acb (diff)
downloadnode-new-56e4255382ad4d2426e034624b41bbe97d18bca0.tar.gz
deps: upgrade npm to 2.9.0
PR-URL: https://github.com/iojs/io.js/pull/1573 Reviewed-By: Jeremiah Senkpiel <fishrock123@rocketmail.com> Reviewed-By: Chris Dickinson <christopher.s.dickinson@gmail.com>
Diffstat (limited to 'deps/npm/node_modules/node-gyp/src')
-rw-r--r--deps/npm/node_modules/node-gyp/src/win_delay_load_hook.c32
1 files changed, 0 insertions, 32 deletions
diff --git a/deps/npm/node_modules/node-gyp/src/win_delay_load_hook.c b/deps/npm/node_modules/node-gyp/src/win_delay_load_hook.c
deleted file mode 100644
index 05c4c39887..0000000000
--- a/deps/npm/node_modules/node-gyp/src/win_delay_load_hook.c
+++ /dev/null
@@ -1,32 +0,0 @@
-/*
- * When this file is linked to a DLL, it sets up a delay-load hook that
- * intervenes when the DLL is trying to load 'node.exe' or 'iojs.exe'
- * dynamically. Instead of trying to locate the .exe file it'll just return
- * a handle to the process image.
- *
- * This allows compiled addons to work when node.exe or iojs.exe is renamed.
- */
-
-#ifdef _MSC_VER
-
-#define WIN32_LEAN_AND_MEAN
-#include <windows.h>
-
-#include <delayimp.h>
-#include <string.h>
-
-static FARPROC WINAPI load_exe_hook(unsigned int event, DelayLoadInfo* info) {
- if (event != dliNotePreLoadLibrary)
- return NULL;
-
- if (_stricmp(info->szDll, "iojs.exe") != 0 &&
- _stricmp(info->szDll, "node.exe") != 0)
- return NULL;
-
- HMODULE m = GetModuleHandle(NULL);
- return (FARPROC) m;
-}
-
-PfnDliHook __pfnDliNotifyHook2 = load_exe_hook;
-
-#endif