Commit 0ee017f2 authored by Jacek Caban's avatar Jacek Caban Committed by Alexandre Julliard

ntoskrnl.exe: Support UserEvent in IoCompleteRequest.

parent 0a8c36b8
......@@ -2304,6 +2304,7 @@ VOID WINAPI IoCompleteRequest( IRP *irp, UCHAR priority_boost )
if (irp->Flags & IRP_DEALLOCATE_BUFFER)
HeapFree( GetProcessHeap(), 0, irp->AssociatedIrp.SystemBuffer );
if (irp->UserEvent) KeSetEvent( irp->UserEvent, IO_NO_INCREMENT, FALSE );
IoFreeIrp( irp );
}
......
......@@ -752,7 +752,6 @@ static void test_call_driver(DEVICE_OBJECT *device)
IoCompleteRequest(irp, IO_NO_INCREMENT);
status = wait_single(&event, 0);
todo_wine
ok(status == STATUS_SUCCESS, "got %#x\n", status);
}
......
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