Commit 181fe28f authored by Zebediah Figura's avatar Zebediah Figura Committed by Alexandre Julliard

wineusb.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: 's avatarZebediah Figura <z.figura12@gmail.com> Signed-off-by: 's avatarAlexandre Julliard <julliard@winehq.org>
parent 5294ebc9
...@@ -391,7 +391,7 @@ static NTSTATUS pdo_pnp(DEVICE_OBJECT *device_obj, IRP *irp) ...@@ -391,7 +391,7 @@ static NTSTATUS pdo_pnp(DEVICE_OBJECT *device_obj, IRP *irp)
while ((entry = RemoveHeadList(&device->irp_list)) != &device->irp_list) while ((entry = RemoveHeadList(&device->irp_list)) != &device->irp_list)
{ {
irp = CONTAINING_RECORD(entry, IRP, Tail.Overlay.ListEntry); irp = CONTAINING_RECORD(entry, IRP, Tail.Overlay.ListEntry);
irp->IoStatus.Status = STATUS_CANCELLED; irp->IoStatus.Status = STATUS_DELETE_PENDING;
irp->IoStatus.Information = 0; irp->IoStatus.Information = 0;
IoCompleteRequest(irp, IO_NO_INCREMENT); IoCompleteRequest(irp, IO_NO_INCREMENT);
} }
......
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