- Remove dereferencing non-referenced FileObject in error cases.
authorFilip Navara <filip.navara@gmail.com>
Tue, 24 Aug 2004 17:08:18 +0000 (17:08 +0000)
committerFilip Navara <filip.navara@gmail.com>
Tue, 24 Aug 2004 17:08:18 +0000 (17:08 +0000)
svn path=/trunk/; revision=10666

reactos/ntoskrnl/io/dir.c

index 864adce..18187c9 100644 (file)
@@ -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
  * PROJECT:         ReactOS kernel
@@ -56,7 +56,6 @@ NtNotifyChangeDirectoryFile (
    
    if (Status != STATUS_SUCCESS)
      {
-       ObDereferenceObject(FileObject);
        return(Status);
      }
    DeviceObject = FileObject->DeviceObject;
@@ -174,7 +173,6 @@ NtQueryDirectoryFile(
    
    if (Status != STATUS_SUCCESS)
      {
-       ObDereferenceObject(FileObject);
        return(Status);
      }
    DeviceObject = FileObject->DeviceObject;