koffi 2.5.12 → 2.5.13
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md
CHANGED
|
Binary file
|
|
Binary file
|
|
Binary file
|
package/package.json
CHANGED
|
@@ -31,9 +31,19 @@
|
|
|
31
31
|
|
|
32
32
|
static FARPROC WINAPI self_exe_hook(unsigned int event, DelayLoadInfo *info)
|
|
33
33
|
{
|
|
34
|
+
static const wchar_t *const NodeLibraries[] = {
|
|
35
|
+
L"node.dll",
|
|
36
|
+
NULL
|
|
37
|
+
};
|
|
38
|
+
|
|
34
39
|
if (event == dliNotePreLoadLibrary && !stricmp(info->szDll, "node.exe")) {
|
|
35
|
-
|
|
36
|
-
|
|
40
|
+
for (int i = 0; i < sizeof(NodeLibraries) / sizeof(*NodeLibraries); i++) {
|
|
41
|
+
const wchar_t *name = NodeLibraries[i];
|
|
42
|
+
HMODULE h = GetModuleHandleW(name);
|
|
43
|
+
|
|
44
|
+
if (h)
|
|
45
|
+
return (FARPROC)h;
|
|
46
|
+
}
|
|
37
47
|
}
|
|
38
48
|
|
|
39
49
|
return NULL;
|