mirror of
https://github.com/reactos/reactos.git
synced 2024-12-28 01:55:19 +00:00
Set missing OBJ_OPENLINK attribute in IoDeleteSymbolicLinkObject().
svn path=/trunk/; revision=3155
This commit is contained in:
parent
1020b229fe
commit
32dfc1175f
1 changed files with 20 additions and 20 deletions
|
@ -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
|
||||
* PROJECT: ReactOS kernel
|
||||
|
@ -368,22 +368,22 @@ IoDeleteSymbolicLink(PUNICODE_STRING SymbolicLinkName)
|
|||
DPRINT("IoDeleteSymbolicLink (SymbolicLinkName %S)\n",
|
||||
SymbolicLinkName->Buffer);
|
||||
|
||||
InitializeObjectAttributes (&ObjectAttributes,
|
||||
InitializeObjectAttributes(&ObjectAttributes,
|
||||
SymbolicLinkName,
|
||||
0,
|
||||
OBJ_OPENLINK,
|
||||
NULL,
|
||||
NULL);
|
||||
|
||||
Status = NtOpenSymbolicLinkObject (&Handle,
|
||||
Status = NtOpenSymbolicLinkObject(&Handle,
|
||||
SYMBOLIC_LINK_ALL_ACCESS,
|
||||
&ObjectAttributes);
|
||||
if (!NT_SUCCESS(Status))
|
||||
return Status;
|
||||
return(Status);
|
||||
|
||||
Status = NtMakeTemporaryObject (Handle);
|
||||
NtClose (Handle);
|
||||
Status = NtMakeTemporaryObject(Handle);
|
||||
NtClose(Handle);
|
||||
|
||||
return Status;
|
||||
return(Status);
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Reference in a new issue