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
306b2441
Commit
306b2441
authored
Jun 09, 2021
by
Zebediah Figura
Committed by
Alexandre Julliard
Jun 09, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ws2_32: Fix the indentation of SIO_ROUTING_INTERFACE_QUERY.
Signed-off-by:
Zebediah Figura
<
z.figura12@gmail.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
37c6790f
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
10 deletions
+11
-10
socket.c
dlls/ws2_32/socket.c
+11
-10
No files found.
dlls/ws2_32/socket.c
View file @
306b2441
...
...
@@ -3437,13 +3437,13 @@ INT WINAPI WSAIoctl(SOCKET s, DWORD code, LPVOID in_buff, DWORD in_size, LPVOID
PMIB_IPADDRTABLE
ipAddrTable
=
NULL
;
DWORD
size
,
i
,
found_index
;
TRACE
(
"-> WS_SIO_ROUTING_INTERFACE_QUERY request
\n
"
);
TRACE
(
"-> WS_SIO_ROUTING_INTERFACE_QUERY request
\n
"
);
if
(
!
in_buff
||
in_size
<
sizeof
(
struct
WS_sockaddr
)
||
!
out_buff
||
out_size
<
sizeof
(
struct
WS_sockaddr_in
))
{
SetLastError
(
WSAEFAULT
);
return
SOCKET_ERROR
;
SetLastError
(
WSAEFAULT
);
return
-
1
;
}
if
(
daddr
->
sa_family
!=
WS_AF_INET
)
{
...
...
@@ -3451,16 +3451,16 @@ INT WINAPI WSAIoctl(SOCKET s, DWORD code, LPVOID in_buff, DWORD in_size, LPVOID
status
=
WSAEAFNOSUPPORT
;
break
;
}
if
(
GetBestRoute
(
daddr_in
->
sin_addr
.
S_un
.
S_addr
,
0
,
&
row
)
!=
NOERROR
||
GetIpAddrTable
(
NULL
,
&
size
,
FALSE
)
!=
ERROR_INSUFFICIENT_BUFFER
)
if
(
GetBestRoute
(
daddr_in
->
sin_addr
.
S_un
.
S_addr
,
0
,
&
row
)
!=
NOERROR
||
GetIpAddrTable
(
NULL
,
&
size
,
FALSE
)
!=
ERROR_INSUFFICIENT_BUFFER
)
{
status
=
WSAEFAULT
;
break
;
}
ipAddrTable
=
HeapAlloc
(
GetProcessHeap
(),
0
,
size
);
if
(
GetIpAddrTable
(
ipAddrTable
,
&
size
,
FALSE
))
ipAddrTable
=
HeapAlloc
(
GetProcessHeap
(),
0
,
size
);
if
(
GetIpAddrTable
(
ipAddrTable
,
&
size
,
FALSE
))
{
HeapFree
(
GetProcessHeap
(),
0
,
ipAddrTable
);
HeapFree
(
GetProcessHeap
(),
0
,
ipAddrTable
);
status
=
WSAEFAULT
;
break
;
}
...
...
@@ -3474,7 +3474,7 @@ INT WINAPI WSAIoctl(SOCKET s, DWORD code, LPVOID in_buff, DWORD in_size, LPVOID
{
ERR
(
"no matching IP address for interface %d
\n
"
,
row
.
dwForwardIfIndex
);
HeapFree
(
GetProcessHeap
(),
0
,
ipAddrTable
);
HeapFree
(
GetProcessHeap
(),
0
,
ipAddrTable
);
status
=
WSAEFAULT
;
break
;
}
...
...
@@ -3482,9 +3482,10 @@ INT WINAPI WSAIoctl(SOCKET s, DWORD code, LPVOID in_buff, DWORD in_size, LPVOID
saddr_in
->
sin_addr
.
S_un
.
S_addr
=
ipAddrTable
->
table
[
found_index
].
dwAddr
;
saddr_in
->
sin_port
=
0
;
total
=
sizeof
(
struct
WS_sockaddr_in
);
HeapFree
(
GetProcessHeap
(),
0
,
ipAddrTable
);
HeapFree
(
GetProcessHeap
(),
0
,
ipAddrTable
);
break
;
}
case
WS_SIO_SET_COMPATIBILITY_MODE
:
TRACE
(
"WS_SIO_SET_COMPATIBILITY_MODE ignored
\n
"
);
status
=
WSAEOPNOTSUPP
;
...
...
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