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
49babc0b
Commit
49babc0b
authored
Nov 20, 2018
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
server: Return a WSA error code in WS_SIO_ADDRESS_LIST_CHANGE.
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
424a379f
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
sock.c
server/sock.c
+3
-3
No files found.
server/sock.c
View file @
49babc0b
...
...
@@ -547,7 +547,7 @@ static int sock_ioctl( struct fd *fd, ioctl_code_t code, struct async *async )
case
WS_SIO_ADDRESS_LIST_CHANGE
:
if
((
sock
->
state
&
FD_WINE_NONBLOCKING
)
&&
async_is_blocking
(
async
))
{
set_
error
(
STATUS_CANT_WAIT
);
set_
win32_error
(
WSAEWOULDBLOCK
);
return
0
;
}
if
(
!
sock_get_ifchange
(
sock
))
return
0
;
...
...
@@ -1097,7 +1097,7 @@ static void ifchange_poll_event( struct fd *fd, int event )
unix_fd
=
socket
(
PF_NETLINK
,
SOCK_RAW
,
NETLINK_ROUTE
);
if
(
unix_fd
==
-
1
)
{
s
ock_set_error
(
);
s
et_win32_error
(
sock_get_error
(
errno
)
);
return
NULL
;
}
fcntl
(
unix_fd
,
F_SETFL
,
O_NONBLOCK
);
/* make socket nonblocking */
...
...
@@ -1108,7 +1108,7 @@ static void ifchange_poll_event( struct fd *fd, int event )
if
(
bind
(
unix_fd
,
(
struct
sockaddr
*
)
&
addr
,
sizeof
(
addr
)
)
==
-
1
)
{
close
(
unix_fd
);
s
ock_set_error
(
);
s
et_win32_error
(
sock_get_error
(
errno
)
);
return
NULL
;
}
if
(
!
(
ifchange
=
alloc_object
(
&
ifchange_ops
)))
...
...
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