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
2f0153df
Commit
2f0153df
authored
Jul 21, 2022
by
Zebediah Figura
Committed by
Alexandre Julliard
Nov 22, 2023
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
server: Translate AFD_POLL_RESET to FD_CLOSE plus WSAECONNABORTED in window messages.
parent
a866d16f
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
2 deletions
+6
-2
sock.c
dlls/ws2_32/tests/sock.c
+1
-1
sock.c
server/sock.c
+5
-1
No files found.
dlls/ws2_32/tests/sock.c
View file @
2f0153df
...
...
@@ -7134,7 +7134,7 @@ static void test_close_events(struct event_test_ctx *ctx)
close_with_rst
(
client
);
check_events
_todo_msg
(
ctx
,
MAKELONG
(
FD_CLOSE
,
WSAECONNABORTED
),
0
,
200
);
check_events
(
ctx
,
MAKELONG
(
FD_CLOSE
,
WSAECONNABORTED
),
0
,
200
);
check_events
(
ctx
,
0
,
0
,
0
);
select_events
(
ctx
,
server
,
FD_ACCEPT
|
FD_CLOSE
|
FD_CONNECT
|
FD_OOB
|
FD_READ
);
if
(
ctx
->
is_message
)
...
...
server/sock.c
View file @
2f0153df
...
...
@@ -800,7 +800,11 @@ static void post_sock_messages( struct sock *sock )
enum
afd_poll_bit
event
=
event_bitorder
[
i
];
if
(
events
&
(
1
<<
event
))
{
lparam_t
lparam
=
afd_poll_flag_to_win32
(
1
<<
event
)
|
(
sock_get_error
(
sock
->
errors
[
event
]
)
<<
16
);
lparam_t
lparam
;
if
(
event
==
AFD_POLL_BIT_RESET
)
lparam
=
FD_CLOSE
|
(
WSAECONNABORTED
<<
16
);
else
lparam
=
afd_poll_flag_to_win32
(
1
<<
event
)
|
(
sock_get_error
(
sock
->
errors
[
event
]
)
<<
16
);
post_message
(
sock
->
window
,
sock
->
message
,
sock
->
wparam
,
lparam
);
}
}
...
...
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