Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
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-cw
Commits
b97c9be3
Commit
b97c9be3
authored
Feb 06, 2023
by
Hans Leidekker
Committed by
Alexandre Julliard
Feb 13, 2023
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wpcap: Try to enable 32-bit mmap() support in libpcap.
This feature will be available in version 1.11.
parent
2432c123
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
0 deletions
+8
-0
wpcap.c
dlls/wpcap/wpcap.c
+8
-0
No files found.
dlls/wpcap/wpcap.c
View file @
b97c9be3
...
@@ -1425,6 +1425,7 @@ int CDECL pcap_wsockinit( void )
...
@@ -1425,6 +1425,7 @@ int CDECL pcap_wsockinit( void )
#define PCAP_CHAR_ENC_LOCAL 0
#define PCAP_CHAR_ENC_LOCAL 0
#define PCAP_CHAR_ENC_UTF_8 1
#define PCAP_CHAR_ENC_UTF_8 1
#define PCAP_MMAP_32BIT 2
int
CDECL
pcap_init
(
unsigned
int
opt
,
char
*
errbuf
)
int
CDECL
pcap_init
(
unsigned
int
opt
,
char
*
errbuf
)
{
{
...
@@ -1450,9 +1451,16 @@ BOOL WINAPI DllMain( HINSTANCE hinst, DWORD reason, void *reserved )
...
@@ -1450,9 +1451,16 @@ BOOL WINAPI DllMain( HINSTANCE hinst, DWORD reason, void *reserved )
{
{
char
errbuf
[
PCAP_ERRBUF_SIZE
];
char
errbuf
[
PCAP_ERRBUF_SIZE
];
struct
init_params
params
=
{
PCAP_CHAR_ENC_UTF_8
,
errbuf
};
struct
init_params
params
=
{
PCAP_CHAR_ENC_UTF_8
,
errbuf
};
BOOL
is_wow64
;
if
(
PCAP_CALL
(
init
,
&
params
)
==
PCAP_ERROR
)
if
(
PCAP_CALL
(
init
,
&
params
)
==
PCAP_ERROR
)
WARN
(
"failed to enable UTF-8 encoding %s
\n
"
,
debugstr_a
(
errbuf
)
);
WARN
(
"failed to enable UTF-8 encoding %s
\n
"
,
debugstr_a
(
errbuf
)
);
if
(
IsWow64Process
(
GetCurrentProcess
(),
&
is_wow64
)
&&
is_wow64
)
{
params
.
opt
=
PCAP_MMAP_32BIT
;
if
(
PCAP_CALL
(
init
,
&
params
)
==
PCAP_ERROR
)
WARN
(
"failed to enable 32-bit mmap() %s
\n
"
,
debugstr_a
(
errbuf
)
);
}
}
}
break
;
break
;
}
}
...
...
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