Removed obsolete 'optimization'.
authorEric Kohl <eric.kohl@reactos.org>
Mon, 15 Apr 2002 12:38:01 +0000 (12:38 +0000)
committerEric Kohl <eric.kohl@reactos.org>
Mon, 15 Apr 2002 12:38:01 +0000 (12:38 +0000)
svn path=/trunk/; revision=2850

reactos/ntoskrnl/io/symlink.c

index b93fd3d..de678b3 100644 (file)
@@ -1,4 +1,4 @@
-/* $Id: symlink.c,v 1.25 2002/02/19 14:06:36 ekohl Exp $
+/* $Id: symlink.c,v 1.26 2002/04/15 12:38:01 ekohl Exp $
  *
  * COPYRIGHT:       See COPYING in the top level directory
  * PROJECT:         ReactOS kernel
@@ -85,9 +85,7 @@ IopParseSymbolicLink(PVOID Object,
                     POBJECT_TYPE ObjectType,
                     ULONG Attributes)
 {
-   NTSTATUS Status;
    PSYMLNK_OBJECT SymlinkObject = (PSYMLNK_OBJECT) Object;
-   PVOID ReturnedObject;
    UNICODE_STRING TargetPath;
 
    DPRINT("IopParseSymbolicLink (RemainingPath %S)\n", *RemainingPath);
@@ -103,20 +101,6 @@ IopParseSymbolicLink(PVOID Object,
        return STATUS_SUCCESS;
      }
 
-   Status = ObReferenceObjectByName(SymlinkObject->Target.ObjectName,
-                                   0,
-                                   NULL,
-                                   STANDARD_RIGHTS_REQUIRED,
-                                   NULL,
-                                   UserMode,
-                                   NULL,
-                                   &ReturnedObject);
-   if (NT_SUCCESS(Status))
-     {
-       *NextObject = ReturnedObject;
-       return STATUS_SUCCESS;
-     }
-
    /* build the expanded path */
    TargetPath.MaximumLength = SymlinkObject->TargetName.Length + sizeof(WCHAR);
    if (RemainingPath && *RemainingPath)