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
6135a3fa
Commit
6135a3fa
authored
Sep 09, 2016
by
Bruno Jesus
Committed by
Alexandre Julliard
Sep 12, 2016
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ws2_32: Use correct WS_ prefixed family.
Signed-off-by:
Bruno Jesus
<
00cpxxx@gmail.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
cac5a599
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
13 deletions
+11
-13
socket.c
dlls/ws2_32/socket.c
+11
-13
No files found.
dlls/ws2_32/socket.c
View file @
6135a3fa
...
...
@@ -4701,19 +4701,17 @@ INT WINAPI WSAIoctl(SOCKET s, DWORD code, LPVOID in_buff, DWORD in_size, LPVOID
addr
=
inet_addr
(
ptr
->
IpAddressList
.
IpAddress
.
String
);
mask
=
inet_addr
(
ptr
->
IpAddressList
.
IpMask
.
String
);
bcast
=
addr
|
~
mask
;
intArray
->
iiAddress
.
AddressIn
.
sin_family
=
AF_INET
;
intArray
->
iiAddress
.
AddressIn
.
sin_family
=
WS_
AF_INET
;
intArray
->
iiAddress
.
AddressIn
.
sin_port
=
0
;
intArray
->
iiAddress
.
AddressIn
.
sin_addr
.
WS_s_addr
=
addr
;
intArray
->
iiNetmask
.
AddressIn
.
sin_family
=
AF_INET
;
intArray
->
iiAddress
.
AddressIn
.
sin_addr
.
WS_s_addr
=
addr
;
intArray
->
iiNetmask
.
AddressIn
.
sin_family
=
WS_
AF_INET
;
intArray
->
iiNetmask
.
AddressIn
.
sin_port
=
0
;
intArray
->
iiNetmask
.
AddressIn
.
sin_addr
.
WS_s_addr
=
mask
;
intArray
->
iiBroadcastAddress
.
AddressIn
.
sin_family
=
AF_INET
;
intArray
->
iiNetmask
.
AddressIn
.
sin_addr
.
WS_s_addr
=
mask
;
intArray
->
iiBroadcastAddress
.
AddressIn
.
sin_family
=
WS_AF_INET
;
intArray
->
iiBroadcastAddress
.
AddressIn
.
sin_port
=
0
;
intArray
->
iiBroadcastAddress
.
AddressIn
.
sin_addr
.
WS_s_addr
=
bcast
;
intArray
->
iiBroadcastAddress
.
AddressIn
.
sin_addr
.
WS_s_addr
=
bcast
;
intArray
++
;
numInt
++
;
}
...
...
@@ -4797,7 +4795,7 @@ INT WINAPI WSAIoctl(SOCKET s, DWORD code, LPVOID in_buff, DWORD in_size, LPVOID
sa
[
i
].
lpSockaddr
=
(
SOCKADDR
*
)
&
sockaddr
[
i
];
sa
[
i
].
iSockaddrLength
=
sizeof
(
SOCKADDR
);
sockaddr
[
i
].
sin_family
=
AF_INET
;
sockaddr
[
i
].
sin_family
=
WS_
AF_INET
;
sockaddr
[
i
].
sin_port
=
0
;
sockaddr
[
i
].
sin_addr
.
WS_s_addr
=
inet_addr
(
p
->
IpAddressList
.
IpAddress
.
String
);
i
++
;
...
...
@@ -4936,7 +4934,7 @@ INT WINAPI WSAIoctl(SOCKET s, DWORD code, LPVOID in_buff, DWORD in_size, LPVOID
SetLastError
(
WSAEFAULT
);
return
SOCKET_ERROR
;
}
if
(
daddr
->
sa_family
!=
AF_INET
)
if
(
daddr
->
sa_family
!=
WS_
AF_INET
)
{
FIXME
(
"unsupported address family %d
\n
"
,
daddr
->
sa_family
);
status
=
WSAEAFNOSUPPORT
;
...
...
@@ -4969,7 +4967,7 @@ INT WINAPI WSAIoctl(SOCKET s, DWORD code, LPVOID in_buff, DWORD in_size, LPVOID
status
=
WSAEFAULT
;
break
;
}
saddr_in
->
sin_family
=
AF_INET
;
saddr_in
->
sin_family
=
WS_
AF_INET
;
saddr_in
->
sin_addr
.
S_un
.
S_addr
=
ipAddrTable
->
table
[
found_index
].
dwAddr
;
saddr_in
->
sin_port
=
0
;
total
=
sizeof
(
struct
WS_sockaddr_in
);
...
...
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