Commit 0f332fc0 authored by Zebediah Figura's avatar Zebediah Figura Committed by Alexandre Julliard

server: Allow calling async_terminate() with STATUS_PENDING.

We still don't quite handle this completely correctly, but we should at least avoid crashing the server due to a failed assertion. Signed-off-by: 's avatarZebediah Figura <zfigura@codeweavers.com> Signed-off-by: 's avatarAlexandre Julliard <julliard@winehq.org>
parent 8ae01354
......@@ -156,8 +156,6 @@ static void async_destroy( struct object *obj )
/* notifies client thread of new status of its async request */
void async_terminate( struct async *async, unsigned int status )
{
assert( status != STATUS_PENDING );
if (async->terminated) return;
async->terminated = 1;
......
......@@ -386,7 +386,6 @@ static void set_irp_result( struct irp_call *irp, unsigned int status,
if (!file) return; /* already finished */
/* FIXME: handle the STATUS_PENDING case */
iosb->status = status;
iosb->result = result;
iosb->out_size = min( iosb->out_size, out_size );
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment