mirror of
https://github.com/reactos/reactos.git
synced 2025-01-01 03:54:02 +00:00
[HID]
- Hidclass must delete the FDO, not the minidriver. svn path=/trunk/; revision=59011
This commit is contained in:
parent
ab06a44464
commit
2f252b01ea
2 changed files with 14 additions and 6 deletions
|
@ -411,6 +411,13 @@ HidClassFDO_RemoveDevice(
|
||||||
IN PIRP Irp)
|
IN PIRP Irp)
|
||||||
{
|
{
|
||||||
NTSTATUS Status;
|
NTSTATUS Status;
|
||||||
|
PHIDCLASS_FDO_EXTENSION FDODeviceExtension;
|
||||||
|
|
||||||
|
//
|
||||||
|
// get device extension
|
||||||
|
//
|
||||||
|
FDODeviceExtension = DeviceObject->DeviceExtension;
|
||||||
|
ASSERT(FDODeviceExtension->Common.IsFDO);
|
||||||
|
|
||||||
/* FIXME cleanup */
|
/* FIXME cleanup */
|
||||||
|
|
||||||
|
@ -425,6 +432,13 @@ HidClassFDO_RemoveDevice(
|
||||||
//
|
//
|
||||||
Irp->IoStatus.Status = Status;
|
Irp->IoStatus.Status = Status;
|
||||||
IoCompleteRequest(Irp, IO_NO_INCREMENT);
|
IoCompleteRequest(Irp, IO_NO_INCREMENT);
|
||||||
|
|
||||||
|
//
|
||||||
|
// detach and delete device
|
||||||
|
//
|
||||||
|
IoDetachDevice(FDODeviceExtension->Common.HidDeviceExtension.NextDeviceObject);
|
||||||
|
IoDeleteDevice(DeviceObject);
|
||||||
|
|
||||||
return Status;
|
return Status;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -1660,12 +1660,6 @@ HidPnp(
|
||||||
HidDeviceExtension->ConfigurationDescriptor = NULL;
|
HidDeviceExtension->ConfigurationDescriptor = NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
//
|
|
||||||
// delete and detach device
|
|
||||||
//
|
|
||||||
IoDetachDevice(DeviceExtension->NextDeviceObject);
|
|
||||||
IoDeleteDevice(DeviceObject);
|
|
||||||
|
|
||||||
return Status;
|
return Status;
|
||||||
}
|
}
|
||||||
case IRP_MN_QUERY_PNP_DEVICE_STATE:
|
case IRP_MN_QUERY_PNP_DEVICE_STATE:
|
||||||
|
|
Loading…
Reference in a new issue