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
c0e49c5c
Commit
c0e49c5c
authored
Oct 07, 2014
by
Henri Verbeet
Committed by
Alexandre Julliard
Oct 07, 2014
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ws2_32: Simplify some address calculations for SIO_ADDRESS_LIST_QUERY.
parent
32724def
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
4 deletions
+2
-4
socket.c
dlls/ws2_32/socket.c
+2
-4
No files found.
dlls/ws2_32/socket.c
View file @
c0e49c5c
...
...
@@ -3963,9 +3963,7 @@ INT WINAPI WSAIoctl(SOCKET s, DWORD code, LPVOID in_buff, DWORD in_size, LPVOID
for
(
p
=
table
,
num
=
0
;
p
;
p
=
p
->
Next
)
if
(
p
->
IpAddressList
.
IpAddress
.
String
[
0
])
num
++
;
total
=
sizeof
(
SOCKET_ADDRESS_LIST
)
+
sizeof
(
SOCKET_ADDRESS
)
*
(
num
-
1
);
total
+=
sizeof
(
SOCKADDR
)
*
num
;
total
=
FIELD_OFFSET
(
SOCKET_ADDRESS_LIST
,
Address
[
num
])
+
num
*
sizeof
(
*
sockaddr
);
if
(
total
>
out_size
||
!
out_buff
)
{
*
ret_size
=
total
;
...
...
@@ -3976,7 +3974,7 @@ INT WINAPI WSAIoctl(SOCKET s, DWORD code, LPVOID in_buff, DWORD in_size, LPVOID
sa_list
=
out_buff
;
sa
=
sa_list
->
Address
;
sockaddr
=
(
SOCKADDR_IN
*
)
((
char
*
)
sa
+
num
*
sizeof
(
SOCKET_ADDRESS
))
;
sockaddr
=
(
SOCKADDR_IN
*
)
&
sa
[
num
]
;
sa_list
->
iAddressCount
=
num
;
for
(
p
=
table
,
i
=
0
;
p
;
p
=
p
->
Next
)
...
...
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