ntoskrnl.exe: Support UserEvent in IoCompleteRequest.

Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Jacek Caban 2019-05-02 13:21:48 +02:00 committed by Alexandre Julliard
parent 0a8c36b8e3
commit 0ee017f2ed
2 changed files with 1 additions and 1 deletions

View File

@ -2304,6 +2304,7 @@ VOID WINAPI IoCompleteRequest( IRP *irp, UCHAR priority_boost )
if (irp->Flags & IRP_DEALLOCATE_BUFFER) if (irp->Flags & IRP_DEALLOCATE_BUFFER)
HeapFree( GetProcessHeap(), 0, irp->AssociatedIrp.SystemBuffer ); HeapFree( GetProcessHeap(), 0, irp->AssociatedIrp.SystemBuffer );
if (irp->UserEvent) KeSetEvent( irp->UserEvent, IO_NO_INCREMENT, FALSE );
IoFreeIrp( irp ); IoFreeIrp( irp );
} }

View File

@ -752,7 +752,6 @@ static void test_call_driver(DEVICE_OBJECT *device)
IoCompleteRequest(irp, IO_NO_INCREMENT); IoCompleteRequest(irp, IO_NO_INCREMENT);
status = wait_single(&event, 0); status = wait_single(&event, 0);
todo_wine
ok(status == STATUS_SUCCESS, "got %#x\n", status); ok(status == STATUS_SUCCESS, "got %#x\n", status);
} }