mirror of
https://github.com/reactos/reactos.git
synced 2025-05-31 23:18:39 +00:00
[PORTCLS]
- Check if resource list has been allocated svn path=/trunk/; revision=47711
This commit is contained in:
parent
a24aedc9d1
commit
a1979b8e2d
1 changed files with 13 additions and 2 deletions
|
@ -118,11 +118,22 @@ PortClsPnp(
|
||||||
// Clean up
|
// Clean up
|
||||||
DPRINT("IRP_MN_REMOVE_DEVICE\n");
|
DPRINT("IRP_MN_REMOVE_DEVICE\n");
|
||||||
|
|
||||||
DeviceExt->resources->Release();
|
// sanity check
|
||||||
IoDeleteDevice(DeviceObject);
|
PC_ASSERT(DeviceExt);
|
||||||
|
|
||||||
|
// FIXME more cleanup */
|
||||||
|
if (DeviceExt->resources)
|
||||||
|
{
|
||||||
|
// free resource list */
|
||||||
|
DeviceExt->resources->Release();
|
||||||
|
|
||||||
|
// set to null
|
||||||
|
DeviceExt->resources = NULL;
|
||||||
|
}
|
||||||
|
|
||||||
// Forward request
|
// Forward request
|
||||||
Status = PcForwardIrpSynchronous(DeviceObject, Irp);
|
Status = PcForwardIrpSynchronous(DeviceObject, Irp);
|
||||||
|
|
||||||
return PcCompleteIrp(DeviceObject, Irp, Status);
|
return PcCompleteIrp(DeviceObject, Irp, Status);
|
||||||
|
|
||||||
case IRP_MN_QUERY_INTERFACE:
|
case IRP_MN_QUERY_INTERFACE:
|
||||||
|
|
Loading…
Reference in a new issue