Enabled the call to ObDereferenceObject for some

IRP_MJ_xxx functions in IoSecondStageCompletion().

svn path=/trunk/; revision=2172
This commit is contained in:
Hartmut Birr 2001-08-14 20:49:05 +00:00
parent cc2e3f0806
commit d0f2100e07

View file

@ -254,6 +254,10 @@ VOID IoSecondStageCompletion(PIRP Irp, CCHAR PriorityBoost)
{
//ObDereferenceObject(FileObject);
}
if (FileObject != NULL && (IoStack->MajorFunction == IRP_MJ_READ || IoStack->MajorFunction == IRP_MJ_WRITE || IoStack->MajorFunction ==IRP_MJ_CLEANUP || IoStack->MajorFunction ==IRP_MJ_CREATE || IoStack->MajorFunction==IRP_MJ_DIRECTORY_CONTROL))
{
ObDereferenceObject(FileObject);
}
IoFreeIrp(Irp);
}