mirror of
https://github.com/ApfelTeeSaft/reactos.git
synced 2026-09-02 19:26:32 +00:00
[HID]
- Hidclass must delete the FDO, not the minidriver. svn path=/trunk/; revision=59011
This commit is contained in:
@@ -411,6 +411,13 @@ HidClassFDO_RemoveDevice(
|
||||
IN PIRP Irp)
|
||||
{
|
||||
NTSTATUS Status;
|
||||
PHIDCLASS_FDO_EXTENSION FDODeviceExtension;
|
||||
|
||||
//
|
||||
// get device extension
|
||||
//
|
||||
FDODeviceExtension = DeviceObject->DeviceExtension;
|
||||
ASSERT(FDODeviceExtension->Common.IsFDO);
|
||||
|
||||
/* FIXME cleanup */
|
||||
|
||||
@@ -425,6 +432,13 @@ HidClassFDO_RemoveDevice(
|
||||
//
|
||||
Irp->IoStatus.Status = Status;
|
||||
IoCompleteRequest(Irp, IO_NO_INCREMENT);
|
||||
|
||||
//
|
||||
// detach and delete device
|
||||
//
|
||||
IoDetachDevice(FDODeviceExtension->Common.HidDeviceExtension.NextDeviceObject);
|
||||
IoDeleteDevice(DeviceObject);
|
||||
|
||||
return Status;
|
||||
}
|
||||
|
||||
|
||||
@@ -1660,12 +1660,6 @@ HidPnp(
|
||||
HidDeviceExtension->ConfigurationDescriptor = NULL;
|
||||
}
|
||||
|
||||
//
|
||||
// delete and detach device
|
||||
//
|
||||
IoDetachDevice(DeviceExtension->NextDeviceObject);
|
||||
IoDeleteDevice(DeviceObject);
|
||||
|
||||
return Status;
|
||||
}
|
||||
case IRP_MN_QUERY_PNP_DEVICE_STATE:
|
||||
|
||||
Reference in New Issue
Block a user