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
a5b6e90d
Commit
a5b6e90d
authored
May 21, 2021
by
Zebediah Figura
Committed by
Alexandre Julliard
May 24, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
server: Don't change the status of an already terminated async.
Signed-off-by:
Zebediah Figura
<
z.figura12@gmail.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
9561af9a
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
7 deletions
+2
-7
async.c
server/async.c
+2
-7
No files found.
server/async.c
View file @
a5b6e90d
...
...
@@ -154,12 +154,7 @@ void async_terminate( struct async *async, unsigned int status )
{
assert
(
status
!=
STATUS_PENDING
);
if
(
async
->
status
!=
STATUS_PENDING
)
{
/* already terminated, just update status */
async
->
status
=
status
;
return
;
}
if
(
async
->
status
!=
STATUS_PENDING
)
return
;
/* already terminated */
async
->
status
=
status
;
if
(
async
->
iosb
&&
async
->
iosb
->
status
==
STATUS_PENDING
)
async
->
iosb
->
status
=
status
;
...
...
@@ -457,7 +452,7 @@ static int cancel_async( struct process *process, struct object *obj, struct thr
restart:
LIST_FOR_EACH_ENTRY
(
async
,
&
process
->
asyncs
,
struct
async
,
process_entry
)
{
if
(
async
->
status
==
STATUS_CANCELLED
)
continue
;
if
(
async
->
status
!=
STATUS_PENDING
)
continue
;
if
((
!
obj
||
(
async
->
fd
&&
get_fd_user
(
async
->
fd
)
==
obj
))
&&
(
!
thread
||
async
->
thread
==
thread
)
&&
(
!
iosb
||
async
->
data
.
iosb
==
iosb
))
...
...
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