Set missing OBJ_OPENLINK attribute in IoDeleteSymbolicLinkObject().

svn path=/trunk/; revision=3155
This commit is contained in:
Eric Kohl 2002-06-27 17:46:53 +00:00
parent 1020b229fe
commit 32dfc1175f

View file

@ -1,4 +1,4 @@
/* $Id: symlink.c,v 1.27 2002/06/20 21:30:33 ekohl Exp $ /* $Id: symlink.c,v 1.28 2002/06/27 17:46:53 ekohl Exp $
* *
* COPYRIGHT: See COPYING in the top level directory * COPYRIGHT: See COPYING in the top level directory
* PROJECT: ReactOS kernel * PROJECT: ReactOS kernel
@ -359,31 +359,31 @@ IoCreateSymbolicLink(PUNICODE_STRING SymbolicLinkName,
NTSTATUS STDCALL NTSTATUS STDCALL
IoDeleteSymbolicLink(PUNICODE_STRING SymbolicLinkName) IoDeleteSymbolicLink(PUNICODE_STRING SymbolicLinkName)
{ {
OBJECT_ATTRIBUTES ObjectAttributes; OBJECT_ATTRIBUTES ObjectAttributes;
HANDLE Handle; HANDLE Handle;
NTSTATUS Status; NTSTATUS Status;
assert_irql(PASSIVE_LEVEL); assert_irql(PASSIVE_LEVEL);
DPRINT("IoDeleteSymbolicLink (SymbolicLinkName %S)\n", DPRINT("IoDeleteSymbolicLink (SymbolicLinkName %S)\n",
SymbolicLinkName->Buffer); SymbolicLinkName->Buffer);
InitializeObjectAttributes (&ObjectAttributes, InitializeObjectAttributes(&ObjectAttributes,
SymbolicLinkName, SymbolicLinkName,
0, OBJ_OPENLINK,
NULL, NULL,
NULL); NULL);
Status = NtOpenSymbolicLinkObject (&Handle, Status = NtOpenSymbolicLinkObject(&Handle,
SYMBOLIC_LINK_ALL_ACCESS, SYMBOLIC_LINK_ALL_ACCESS,
&ObjectAttributes); &ObjectAttributes);
if (!NT_SUCCESS(Status)) if (!NT_SUCCESS(Status))
return Status; return(Status);
Status = NtMakeTemporaryObject (Handle); Status = NtMakeTemporaryObject(Handle);
NtClose (Handle); NtClose(Handle);
return Status; return(Status);
} }