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
7ca40003
Commit
7ca40003
authored
Mar 09, 2013
by
Filip Navara
Committed by
Alexandre Julliard
Mar 11, 2013
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
iphlpapi: Use prefixed WS_ structures to avoid misalignment on OS X builds.
Thanks to Hans Leidekker for diagnosing the problem.
parent
0010ee02
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
6 deletions
+6
-6
iphlpapi_main.c
dlls/iphlpapi/iphlpapi_main.c
+6
-6
No files found.
dlls/iphlpapi/iphlpapi_main.c
View file @
7ca40003
...
...
@@ -848,7 +848,7 @@ static ULONG adapterAddressesFromIndex(ULONG family, ULONG flags, IF_INDEX index
if
(
num_v4addrs
)
{
IP_ADAPTER_UNICAST_ADDRESS
*
ua
;
struct
sockaddr_in
*
sa
;
struct
WS_
sockaddr_in
*
sa
;
aa
->
Flags
|=
IP_ADAPTER_IPV4_ENABLED
;
ua
=
aa
->
FirstUnicastAddress
=
(
IP_ADAPTER_UNICAST_ADDRESS
*
)
ptr
;
for
(
i
=
0
;
i
<
num_v4addrs
;
i
++
)
...
...
@@ -860,12 +860,12 @@ static ULONG adapterAddressesFromIndex(ULONG family, ULONG flags, IF_INDEX index
ua
->
Address
.
iSockaddrLength
=
sizeof
(
struct
sockaddr_in
);
ua
->
Address
.
lpSockaddr
=
(
SOCKADDR
*
)((
char
*
)
ua
+
ua
->
u
.
s
.
Length
);
sa
=
(
struct
sockaddr_in
*
)
ua
->
Address
.
lpSockaddr
;
sa
->
sin_family
=
AF_INET
;
sa
->
sin_addr
.
s
_addr
=
v4addrs
[
i
];
sa
->
sin_port
=
0
;
sa
=
(
struct
WS_
sockaddr_in
*
)
ua
->
Address
.
lpSockaddr
;
sa
->
sin_family
=
WS_
AF_INET
;
sa
->
sin_addr
.
S_un
.
S
_addr
=
v4addrs
[
i
];
sa
->
sin_port
=
0
;
TRACE
(
"IPv4 %d/%d: %s
\n
"
,
i
+
1
,
num_v4addrs
,
debugstr_ipv4
(
&
sa
->
sin_addr
.
s
_addr
,
addr_buf
));
debugstr_ipv4
(
&
sa
->
sin_addr
.
S_un
.
S
_addr
,
addr_buf
));
ptr
+=
ua
->
u
.
s
.
Length
+
ua
->
Address
.
iSockaddrLength
;
if
(
i
<
num_v4addrs
-
1
)
...
...
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