Windows: adjust DLL embedding implementation

Define `__pfnDliNotifyHook2` instead of declaring it as `extern` seems
to make it work in more build environments.
This commit is contained in:
Matthew Flatt 2018-03-27 13:33:49 -06:00
parent 5ec71d45e8
commit f6424ff7c2

View File

@ -10,7 +10,7 @@ typedef struct embedded_dll_entry_t {
static embedded_dll_entry_t *embedded_dlls;
extern void *__pfnDliNotifyHook2;
void *__pfnDliNotifyHook2 = NULL;
static FARPROC WINAPI delayHook(unsigned dliNotify, void *pdli);
static HCUSTOMMODULE LoadLibraryHook(LPCSTR, void *);
static FARPROC GetProcAddressHook(HCUSTOMMODULE, LPCSTR, void *);