Module: wine Branch: master Commit: 7eb08bd230fc624d35005f16a0fefc59b01083a0 URL: https://gitlab.winehq.org/wine/wine/-/commit/7eb08bd230fc624d35005f16a0fefc5...
Author: Alexandre Julliard julliard@winehq.org Date: Mon Nov 28 11:41:57 2022 +0100
wpcap: Use the Unix call helpers.
---
dlls/wpcap/wpcap.c | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-)
diff --git a/dlls/wpcap/wpcap.c b/dlls/wpcap/wpcap.c index df35954bfa7..c93c8540145 100644 --- a/dlls/wpcap/wpcap.c +++ b/dlls/wpcap/wpcap.c @@ -33,9 +33,7 @@
WINE_DEFAULT_DEBUG_CHANNEL(wpcap);
-static unixlib_handle_t pcap_handle; - -#define PCAP_CALL( func, params ) __wine_unix_call( pcap_handle, unix_ ## func, params ) +#define PCAP_CALL( func, params ) WINE_UNIX_CALL( unix_ ## func, params )
int CDECL pcap_activate( struct pcap *pcap ) { @@ -830,8 +828,7 @@ BOOL WINAPI DllMain( HINSTANCE hinst, DWORD reason, void *reserved ) { case DLL_PROCESS_ATTACH: DisableThreadLibraryCalls( hinst ); - if (NtQueryVirtualMemory( GetCurrentProcess(), hinst, MemoryWineUnixFuncs, - &pcap_handle, sizeof(pcap_handle), NULL )) + if (__wine_init_unix_call()) ERR( "No pcap support, expect problems\n" ); break; case DLL_PROCESS_DETACH: