mirror of
https://git.savannah.nongnu.org/git/lwip.git
synced 2026-06-16 18:03:44 +08:00
win32: pcapif: ensure we can run with npcap as well
By default, npcap keeps its DLLs not in system32 but in system32/npcap. To load DLLs from there, mark them as "delay load DLLs" and adjust the DLL search path before using/loading them. Signed-off-by: Simon Goldschmidt <goldsimon@gmx.de>
This commit is contained in:
@@ -1057,6 +1057,9 @@ pcapif_init(struct netif *netif)
|
||||
|
||||
int local_index;
|
||||
SYS_ARCH_DECL_PROTECT(lev);
|
||||
|
||||
pcapifh_init_npcap();
|
||||
|
||||
SYS_ARCH_PROTECT(lev);
|
||||
local_index = ethernetif_index++;
|
||||
SYS_ARCH_UNPROTECT(lev);
|
||||
|
||||
Reference in New Issue
Block a user