mirror of
https://github.com/reactos/reactos.git
synced 2025-01-02 20:43:18 +00:00
- Remove dereferencing non-referenced FileObject in error cases.
svn path=/trunk/; revision=10666
This commit is contained in:
parent
aaa5aaec7e
commit
ccec5bfedd
1 changed files with 1 additions and 3 deletions
|
@ -1,4 +1,4 @@
|
||||||
/* $Id: dir.c,v 1.24 2004/08/22 20:51:43 navaraf Exp $
|
/* $Id: dir.c,v 1.25 2004/08/24 17:08:18 navaraf Exp $
|
||||||
*
|
*
|
||||||
* COPYRIGHT: See COPYING in the top level directory
|
* COPYRIGHT: See COPYING in the top level directory
|
||||||
* PROJECT: ReactOS kernel
|
* PROJECT: ReactOS kernel
|
||||||
|
@ -56,7 +56,6 @@ NtNotifyChangeDirectoryFile (
|
||||||
|
|
||||||
if (Status != STATUS_SUCCESS)
|
if (Status != STATUS_SUCCESS)
|
||||||
{
|
{
|
||||||
ObDereferenceObject(FileObject);
|
|
||||||
return(Status);
|
return(Status);
|
||||||
}
|
}
|
||||||
DeviceObject = FileObject->DeviceObject;
|
DeviceObject = FileObject->DeviceObject;
|
||||||
|
@ -174,7 +173,6 @@ NtQueryDirectoryFile(
|
||||||
|
|
||||||
if (Status != STATUS_SUCCESS)
|
if (Status != STATUS_SUCCESS)
|
||||||
{
|
{
|
||||||
ObDereferenceObject(FileObject);
|
|
||||||
return(Status);
|
return(Status);
|
||||||
}
|
}
|
||||||
DeviceObject = FileObject->DeviceObject;
|
DeviceObject = FileObject->DeviceObject;
|
||||||
|
|
Loading…
Reference in a new issue