From ae351cde87fd7d8591c977fc862705407fc42bea Mon Sep 17 00:00:00 2001 From: Casper Hornstrup Date: Sat, 17 May 2003 00:25:39 +0000 Subject: [PATCH] 2003-05-17 Casper S. Hornstrup * ntoskrnl/io/irp.c (IofCallDriver): Don't reference FileObject. svn path=/trunk/; revision=4694 --- reactos/ChangeLog | 4 ++++ reactos/ntoskrnl/io/irp.c | 7 +------ 2 files changed, 5 insertions(+), 6 deletions(-) diff --git a/reactos/ChangeLog b/reactos/ChangeLog index c75abbe141e..4699b02ad37 100644 --- a/reactos/ChangeLog +++ b/reactos/ChangeLog @@ -1,3 +1,7 @@ +2003-05-17 Casper S. Hornstrup + + * ntoskrnl/io/irp.c (IofCallDriver): Don't reference FileObject. + 2003-05-16 Casper S. Hornstrup * ntoskrnl/io/cleanup.c (IopCompleteRequest1, IoSecondStageCompletion): diff --git a/reactos/ntoskrnl/io/irp.c b/reactos/ntoskrnl/io/irp.c index d5a3ff3e18a..ef822ed1b97 100644 --- a/reactos/ntoskrnl/io/irp.c +++ b/reactos/ntoskrnl/io/irp.c @@ -1,4 +1,4 @@ -/* $Id: irp.c,v 1.48 2003/05/16 12:03:11 chorns Exp $ +/* $Id: irp.c,v 1.49 2003/05/17 00:25:39 chorns Exp $ * * COPYRIGHT: See COPYING in the top level directory * PROJECT: ReactOS kernel @@ -129,11 +129,6 @@ IofCallDriver(PDEVICE_OBJECT DeviceObject, DPRINT("DriverObject->MajorFunction[Param->MajorFunction] %x\n", DriverObject->MajorFunction[Param->MajorFunction]); - if ((Param->FileObject) && (Param->MajorFunction != IRP_MJ_CLOSE)) - { - ObReferenceObject(Param->FileObject); - } - return DriverObject->MajorFunction[Param->MajorFunction](DeviceObject, Irp); }