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
8bf295fd
Commit
8bf295fd
authored
Sep 26, 2022
by
Zebediah Figura
Committed by
Alexandre Julliard
Oct 21, 2022
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ntdll: Combine the "if (alerted)" blocks in sock_send().
There is no need to release the async_fileio structure before calling set_async_direct_result().
parent
d3c8842a
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
5 deletions
+6
-5
socket.c
dlls/ntdll/unix/socket.c
+6
-5
No files found.
dlls/ntdll/unix/socket.c
View file @
8bf295fd
...
...
@@ -1099,9 +1099,8 @@ static void sock_save_icmp_id( struct async_send_ioctl *async )
static
NTSTATUS
sock_send
(
HANDLE
handle
,
HANDLE
event
,
PIO_APC_ROUTINE
apc
,
void
*
apc_user
,
IO_STATUS_BLOCK
*
io
,
int
fd
,
struct
async_send_ioctl
*
async
,
int
force_async
)
{
BOOL
nonblocking
,
alerted
;
ULONG_PTR
information
;
HANDLE
wait_handle
;
BOOL
nonblocking
;
NTSTATUS
status
;
ULONG
options
;
...
...
@@ -1122,9 +1121,10 @@ static NTSTATUS sock_send( HANDLE handle, HANDLE event, PIO_APC_ROUTINE apc, voi
if
(
!
NT_ERROR
(
status
)
&&
is_icmp_over_dgram
(
fd
))
sock_save_icmp_id
(
async
);
alerted
=
status
==
STATUS_ALERTED
;
if
(
alerted
)
if
(
status
==
STATUS_ALERTED
)
{
ULONG_PTR
information
;
status
=
try_send
(
fd
,
async
);
if
(
status
==
STATUS_DEVICE_NOT_READY
&&
(
force_async
||
!
nonblocking
))
status
=
STATUS_PENDING
;
...
...
@@ -1142,12 +1142,13 @@ static NTSTATUS sock_send( HANDLE handle, HANDLE event, PIO_APC_ROUTINE apc, voi
io
->
Status
=
status
;
io
->
Information
=
information
;
}
set_async_direct_result
(
&
wait_handle
,
status
,
information
,
FALSE
);
}
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
);
return
status
;
}
...
...
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