mirror of
https://github.com/reactos/reactos.git
synced 2025-02-24 01:15:09 +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
|
||||
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