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
1975398b
Commit
1975398b
authored
Jul 21, 2022
by
Zebediah Figura
Committed by
Alexandre Julliard
Nov 22, 2023
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ws2_32: Translate AFD_POLL_RESET to FD_CLOSE plus WSAECONNABORTED in WSAEnumNetworkEvents().
parent
2f0153df
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
2 deletions
+5
-2
socket.c
dlls/ws2_32/socket.c
+4
-1
sock.c
dlls/ws2_32/tests/sock.c
+1
-1
No files found.
dlls/ws2_32/socket.c
View file @
1975398b
...
...
@@ -3629,7 +3629,10 @@ int WINAPI WSAEnumNetworkEvents( SOCKET s, WSAEVENT event, WSANETWORKEVENTS *ret
if
(
ret_events
->
lNetworkEvents
&
FD_CLOSE
)
{
if
(
!
(
ret_events
->
iErrorCode
[
FD_CLOSE_BIT
]
=
NtStatusToWSAError
(
params
.
status
[
AFD_POLL_BIT_HUP
]
)))
ret_events
->
iErrorCode
[
FD_CLOSE_BIT
]
=
NtStatusToWSAError
(
params
.
status
[
AFD_POLL_BIT_RESET
]
);
{
if
(
params
.
flags
&
AFD_POLL_RESET
)
ret_events
->
iErrorCode
[
FD_CLOSE_BIT
]
=
WSAECONNABORTED
;
}
}
}
SetLastError
(
NtStatusToWSAError
(
status
)
);
...
...
dlls/ws2_32/tests/sock.c
View file @
1975398b
...
...
@@ -6290,7 +6290,7 @@ static void check_events_(int line, struct event_test_ctx *ctx,
for
(
i
=
0
;
i
<
ARRAY_SIZE
(
events
.
iErrorCode
);
++
i
)
{
if
((
1u
<<
i
)
==
LOWORD
(
flag1
)
&&
(
events
.
lNetworkEvents
&
LOWORD
(
flag1
)))
todo_wine_if
(
HIWORD
(
flag1
))
ok_
(
__FILE__
,
line
)(
events
.
iErrorCode
[
i
]
==
HIWORD
(
flag1
),
ok_
(
__FILE__
,
line
)(
events
.
iErrorCode
[
i
]
==
HIWORD
(
flag1
),
"got error code %d for event %#x
\n
"
,
events
.
iErrorCode
[
i
],
1u
<<
i
);
if
((
1u
<<
i
)
==
LOWORD
(
flag2
)
&&
(
events
.
lNetworkEvents
&
LOWORD
(
flag2
)))
ok_
(
__FILE__
,
line
)(
events
.
iErrorCode
[
i
]
==
HIWORD
(
flag2
),
...
...
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