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