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
80677440
Commit
80677440
authored
Feb 19, 2018
by
Zebediah Figura
Committed by
Alexandre Julliard
Feb 20, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ws2_32: Only set error codes for triggered events in WSAEnumNetworkEvents().
Signed-off-by:
Zebediah Figura
<
z.figura12@gmail.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
ea52b552
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
3 deletions
+5
-3
socket.c
dlls/ws2_32/socket.c
+4
-1
sock.c
dlls/ws2_32/tests/sock.c
+1
-2
No files found.
dlls/ws2_32/socket.c
View file @
80677440
...
...
@@ -7218,7 +7218,10 @@ int WINAPI WSAEnumNetworkEvents(SOCKET s, WSAEVENT hEvent, LPWSANETWORKEVENTS lp
if
(
!
ret
)
{
for
(
i
=
0
;
i
<
FD_MAX_EVENTS
;
i
++
)
lpEvent
->
iErrorCode
[
i
]
=
NtStatusToWSAError
(
errors
[
i
]);
{
if
(
lpEvent
->
lNetworkEvents
&
(
1
<<
i
))
lpEvent
->
iErrorCode
[
i
]
=
NtStatusToWSAError
(
errors
[
i
]);
}
return
0
;
}
SetLastError
(
WSAEINVAL
);
...
...
dlls/ws2_32/tests/sock.c
View file @
80677440
...
...
@@ -2995,7 +2995,7 @@ static void test_WSAEnumNetworkEvents(void)
}
for
(
k
=
0
;
k
<
FD_MAX_EVENTS
;
k
++
)
{
if
(
i
>=
1
&&
j
==
0
&&
k
==
1
)
/* first UDP and connected TCP test, FD_WRITE bit no error*/
if
(
net_events
.
lNetworkEvents
&
(
1
<<
k
))
{
ok
(
net_events
.
iErrorCode
[
k
]
==
0x0
,
"Test[%d][%d]: expected 0x0, got 0x%x
\n
"
,
i
,
k
,
net_events
.
iErrorCode
[
k
]);
...
...
@@ -3003,7 +3003,6 @@ static void test_WSAEnumNetworkEvents(void)
else
{
/* Bits that are not set in lNetworkEvents MUST not be changed */
todo_wine
ok
(
net_events
.
iErrorCode
[
k
]
==
0xABABABAB
,
"Test[%d][%d]: expected 0xABABABAB, got 0x%x
\n
"
,
i
,
k
,
net_events
.
iErrorCode
[
k
]);
}
...
...
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