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:
parent
0a8c36b8e3
commit
0ee017f2ed
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue