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:
parent
5ec71d45e8
commit
f6424ff7c2
|
@ -10,7 +10,7 @@ typedef struct embedded_dll_entry_t {
|
||||||
|
|
||||||
static embedded_dll_entry_t *embedded_dlls;
|
static embedded_dll_entry_t *embedded_dlls;
|
||||||
|
|
||||||
extern void *__pfnDliNotifyHook2;
|
void *__pfnDliNotifyHook2 = NULL;
|
||||||
static FARPROC WINAPI delayHook(unsigned dliNotify, void *pdli);
|
static FARPROC WINAPI delayHook(unsigned dliNotify, void *pdli);
|
||||||
static HCUSTOMMODULE LoadLibraryHook(LPCSTR, void *);
|
static HCUSTOMMODULE LoadLibraryHook(LPCSTR, void *);
|
||||||
static FARPROC GetProcAddressHook(HCUSTOMMODULE, LPCSTR, void *);
|
static FARPROC GetProcAddressHook(HCUSTOMMODULE, LPCSTR, void *);
|
||||||
|
|
Loading…
Reference in New Issue
Block a user