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
45677e17
Commit
45677e17
authored
Jun 18, 2015
by
Bruno Jesus
Committed by
Alexandre Julliard
Jun 19, 2015
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ws2_32: UDP sockets can write data even when unbound.
parent
9d558c5c
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
3 deletions
+2
-3
socket.c
dlls/ws2_32/socket.c
+2
-1
sock.c
dlls/ws2_32/tests/sock.c
+0
-2
No files found.
dlls/ws2_32/socket.c
View file @
45677e17
...
...
@@ -4708,7 +4708,8 @@ static struct pollfd *fd_sets_to_poll( const WS_fd_set *readfds, const WS_fd_set
fds
[
j
].
fd
=
get_sock_fd
(
writefds
->
fd_array
[
i
],
FILE_WRITE_DATA
,
NULL
);
if
(
fds
[
j
].
fd
==
-
1
)
goto
failed
;
fds
[
j
].
revents
=
0
;
if
(
is_fd_bound
(
fds
[
j
].
fd
,
NULL
,
NULL
)
==
1
)
if
(
is_fd_bound
(
fds
[
j
].
fd
,
NULL
,
NULL
)
==
1
||
_get_fd_type
(
fds
[
j
].
fd
)
==
SOCK_DGRAM
)
{
fds
[
j
].
events
=
POLLOUT
;
}
...
...
dlls/ws2_32/tests/sock.c
View file @
45677e17
...
...
@@ -3877,9 +3877,7 @@ todo_wine
FD_ZERO_ALL
();
FD_SET_ALL
(
fdWrite
);
ret
=
select
(
0
,
&
readfds
,
&
writefds
,
&
exceptfds
,
&
select_timeout
);
todo_wine
ok
(
ret
==
1
,
"expected 1, got %d
\n
"
,
ret
);
todo_wine
ok
(
FD_ISSET
(
fdWrite
,
&
writefds
),
"fdWrite socket is not in the set
\n
"
);
closesocket
(
fdWrite
);
}
...
...
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