server: Allocate wait handle on async object in queue_irp.

Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Jacek Caban 2017-05-10 18:34:34 +02:00 committed by Alexandre Julliard
parent 13a1d40583
commit b76c1b468a
1 changed files with 1 additions and 1 deletions

View File

@ -466,7 +466,7 @@ static obj_handle_t queue_irp( struct device_file *file, struct irp_call *irp, s
{
obj_handle_t handle = 0;
if (async_is_blocking( async ) && !(handle = alloc_handle( current->process, irp, SYNCHRONIZE, 0 ))) return 0;
if (async_is_blocking( async ) && !(handle = alloc_handle( current->process, async, SYNCHRONIZE, 0 ))) return 0;
if (!fd_queue_async( file->fd, async, ASYNC_TYPE_WAIT ))
{