Zebediah Figura : server: Allow completing non-alerted asyncs with STATUS_PENDING.
Alexandre Julliard
julliard at winehq.org
Thu Sep 2 15:45:29 CDT 2021
Module: wine
Branch: master
Commit: c4682cd928eacc923c9fbaaa5fb3c9101fa254b7
URL: https://source.winehq.org/git/wine.git/?a=commit;h=c4682cd928eacc923c9fbaaa5fb3c9101fa254b7
Author: Zebediah Figura <zfigura at codeweavers.com>
Date: Wed Sep 1 17:28:36 2021 -0500
server: Allow completing non-alerted asyncs with STATUS_PENDING.
Signed-off-by: Zebediah Figura <zfigura at codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>
---
server/async.c | 11 ++++-------
1 file changed, 4 insertions(+), 7 deletions(-)
diff --git a/server/async.c b/server/async.c
index b414604fcd4..5deaf04d686 100644
--- a/server/async.c
+++ b/server/async.c
@@ -390,14 +390,11 @@ void async_set_result( struct object *obj, unsigned int status, apc_param_t tota
assert( async->terminated ); /* it must have been woken up if we get a result */
- if (status == STATUS_PENDING) /* restart it */
+ if (async->alerted && status == STATUS_PENDING) /* restart it */
{
- if (async->alerted)
- {
- async->terminated = 0;
- async->alerted = 0;
- async_reselect( async );
- }
+ async->terminated = 0;
+ async->alerted = 0;
+ async_reselect( async );
}
else
{
More information about the wine-cvs
mailing list