Cleanup isn't necessary after calling the driver in NtQueryDirectoryFile.
authorHartmut Birr <osexpert@googlemail.com>
Tue, 29 Nov 2005 22:39:12 +0000 (22:39 +0000)
committerHartmut Birr <osexpert@googlemail.com>
Tue, 29 Nov 2005 22:39:12 +0000 (22:39 +0000)
svn path=/trunk/; revision=19759

reactos/ntoskrnl/io/file.c

index f4d3adc..c8107ff 100644 (file)
@@ -2618,11 +2618,8 @@ NtQueryDirectoryFile(IN HANDLE FileHandle,
         }
     }
 
-    /* don't dereference the event anymore! */
-    Event = NULL;
 
-    /* don't free the search pattern string */
-    SearchPattern = NULL;
+    return Status;
 
 Cleanup:
     if (FileObject != NULL)