mirror of
https://github.com/reactos/reactos.git
synced 2024-12-27 09:34:43 +00:00
[USBCCGP] Ignore IRP_MN_REMOVE_DEVICE return status and don't wait for it to complete.
This commit is contained in:
parent
823101274a
commit
71a4462ad5
1 changed files with 8 additions and 9 deletions
|
@ -397,16 +397,15 @@ FDO_HandlePnp(
|
|||
FDO_CloseConfiguration(DeviceObject);
|
||||
|
||||
/* Send the IRP down the stack */
|
||||
Status = USBCCGP_SyncForwardIrp(FDODeviceExtension->NextDeviceObject,
|
||||
Irp);
|
||||
if (NT_SUCCESS(Status))
|
||||
{
|
||||
/* Detach from the device stack */
|
||||
IoDetachDevice(FDODeviceExtension->NextDeviceObject);
|
||||
Irp->IoStatus.Status = STATUS_SUCCESS;
|
||||
IoSkipCurrentIrpStackLocation(Irp);
|
||||
Status = IoCallDriver(FDODeviceExtension->NextDeviceObject, Irp);
|
||||
|
||||
/* Delete the device object */
|
||||
IoDeleteDevice(DeviceObject);
|
||||
}
|
||||
/* Detach from the device stack */
|
||||
IoDetachDevice(FDODeviceExtension->NextDeviceObject);
|
||||
|
||||
/* Delete the device object */
|
||||
IoDeleteDevice(DeviceObject);
|
||||
|
||||
/* Request completed */
|
||||
break;
|
||||
|
|
Loading…
Reference in a new issue