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
d3c8842a
Commit
d3c8842a
authored
Sep 15, 2022
by
Zebediah Figura
Committed by
Alexandre Julliard
Oct 21, 2022
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ntdll: Fill the IOSB in sock_send() only inside the "if (alerted)" block.
We can only get a successful status that way. This matches sock_recv().
parent
3905af7c
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
6 deletions
+7
-6
socket.c
dlls/ntdll/unix/socket.c
+7
-6
No files found.
dlls/ntdll/unix/socket.c
View file @
d3c8842a
...
...
@@ -1116,6 +1116,9 @@ static NTSTATUS sock_send( HANDLE handle, HANDLE event, PIO_APC_ROUTINE apc, voi
}
SERVER_END_REQ
;
/* the server currently will never succeed immediately */
assert
(
status
==
STATUS_ALERTED
||
status
==
STATUS_PENDING
||
NT_ERROR
(
status
));
if
(
!
NT_ERROR
(
status
)
&&
is_icmp_over_dgram
(
fd
))
sock_save_icmp_id
(
async
);
...
...
@@ -1132,19 +1135,17 @@ static NTSTATUS sock_send( HANDLE handle, HANDLE event, PIO_APC_ROUTINE apc, voi
* and returns EWOULDBLOCK, but we have no way of doing that. */
if
(
status
==
STATUS_DEVICE_NOT_READY
&&
async
->
sent_len
)
status
=
STATUS_SUCCESS
;
}
if
(
status
!=
STATUS_PENDING
)
{
information
=
async
->
sent_len
;
if
(
!
NT_ERROR
(
status
)
||
(
wait_handle
&&
!
alerted
)
)
if
(
!
NT_ERROR
(
status
)
&&
status
!=
STATUS_PENDING
)
{
io
->
Status
=
status
;
io
->
Information
=
information
;
}
release_fileio
(
&
async
->
io
);
}
else
information
=
0
;
if
(
status
!=
STATUS_PENDING
)
release_fileio
(
&
async
->
io
);
if
(
alerted
)
set_async_direct_result
(
&
wait_handle
,
status
,
information
,
FALSE
);
if
(
wait_handle
)
status
=
wait_async
(
wait_handle
,
options
&
FILE_SYNCHRONOUS_IO_ALERT
);
...
...
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