winebus.sys: Return STATUS_DELETE_PENDING rather than STATUS_CANCELLED when a device is removed.

Microsoft doesn't really clearly document this, but their driver samples return it here, and so do remove locks.

Signed-off-by: Zebediah Figura <z.figura12@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Zebediah Figura 2021-02-11 18:56:50 -06:00 committed by Alexandre Julliard
parent 181fe28f68
commit 141fdcc0ef
1 changed files with 1 additions and 1 deletions

View File

@ -370,7 +370,7 @@ void bus_remove_hid_device(DEVICE_OBJECT *device)
while ((entry = RemoveHeadList(&ext->irp_queue)) != &ext->irp_queue)
{
irp = CONTAINING_RECORD(entry, IRP, Tail.Overlay.s.ListEntry);
irp->IoStatus.u.Status = STATUS_CANCELLED;
irp->IoStatus.u.Status = STATUS_DELETE_PENDING;
irp->IoStatus.Information = 0;
IoCompleteRequest(irp, IO_NO_INCREMENT);
}