mirror of
https://github.com/reactos/reactos.git
synced 2024-12-28 01:55:19 +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);
|
FDO_CloseConfiguration(DeviceObject);
|
||||||
|
|
||||||
/* Send the IRP down the stack */
|
/* Send the IRP down the stack */
|
||||||
Status = USBCCGP_SyncForwardIrp(FDODeviceExtension->NextDeviceObject,
|
Irp->IoStatus.Status = STATUS_SUCCESS;
|
||||||
Irp);
|
IoSkipCurrentIrpStackLocation(Irp);
|
||||||
if (NT_SUCCESS(Status))
|
Status = IoCallDriver(FDODeviceExtension->NextDeviceObject, Irp);
|
||||||
{
|
|
||||||
/* Detach from the device stack */
|
|
||||||
IoDetachDevice(FDODeviceExtension->NextDeviceObject);
|
|
||||||
|
|
||||||
/* Delete the device object */
|
/* Detach from the device stack */
|
||||||
IoDeleteDevice(DeviceObject);
|
IoDetachDevice(FDODeviceExtension->NextDeviceObject);
|
||||||
}
|
|
||||||
|
/* Delete the device object */
|
||||||
|
IoDeleteDevice(DeviceObject);
|
||||||
|
|
||||||
/* Request completed */
|
/* Request completed */
|
||||||
break;
|
break;
|
||||||
|
|
Loading…
Reference in a new issue