From 1020b229feb3f66de90f3ac5a8feba311a37acd9 Mon Sep 17 00:00:00 2001 From: Eric Kohl Date: Thu, 27 Jun 2002 17:45:45 +0000 Subject: [PATCH] Fixed SystemRoot accessibility check. svn path=/trunk/; revision=3154 --- reactos/ntoskrnl/io/arcname.c | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/reactos/ntoskrnl/io/arcname.c b/reactos/ntoskrnl/io/arcname.c index 832ef9590b6..2fd1e711f6b 100644 --- a/reactos/ntoskrnl/io/arcname.c +++ b/reactos/ntoskrnl/io/arcname.c @@ -16,7 +16,7 @@ * along with this program; if not, write to the Free Software * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */ -/* $Id: arcname.c,v 1.4 2002/06/20 21:30:33 ekohl Exp $ +/* $Id: arcname.c,v 1.5 2002/06/27 17:45:45 ekohl Exp $ * * COPYRIGHT: See COPYING in the top level directory * PROJECT: ReactOS kernel @@ -295,15 +295,19 @@ IoCreateSystemRootLink(PCHAR ParameterLine) NULL, NULL); - Status = NtOpenSymbolicLinkObject(&Handle, - SYMBOLIC_LINK_ALL_ACCESS, - &ObjectAttributes); + Status = NtOpenFile(&Handle, + FILE_ALL_ACCESS, + &ObjectAttributes, + NULL, + 0, + 0); if (!NT_SUCCESS(Status)) { - CPRINT("NtOpenSymbolicLinkObject() failed to open '\\SystemRoot' (Status %x)\n", + CPRINT("NtOpenFile() failed to open '\\SystemRoot' (Status %x)\n", Status); return(Status); } + NtClose(Handle); return(STATUS_SUCCESS);