Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-winehq
Commits
7eb08bd2
Commit
7eb08bd2
authored
Nov 28, 2022
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wpcap: Use the Unix call helpers.
parent
c37f91c7
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
5 deletions
+2
-5
wpcap.c
dlls/wpcap/wpcap.c
+2
-5
No files found.
dlls/wpcap/wpcap.c
View file @
7eb08bd2
...
...
@@ -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
:
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment