ntoskrnl: Implemented IoDeleteSymbolicLink.
This commit is contained in:
parent
ba71579809
commit
0b560febea
@ -543,8 +543,28 @@ NTSTATUS WINAPI IoCreateSymbolicLink( UNICODE_STRING *name, UNICODE_STRING *targ
|
|||||||
*/
|
*/
|
||||||
NTSTATUS WINAPI IoDeleteSymbolicLink( UNICODE_STRING *name )
|
NTSTATUS WINAPI IoDeleteSymbolicLink( UNICODE_STRING *name )
|
||||||
{
|
{
|
||||||
FIXME( "%s\n", debugstr_us(name) );
|
HANDLE handle;
|
||||||
return STATUS_SUCCESS;
|
OBJECT_ATTRIBUTES attr;
|
||||||
|
NTSTATUS status;
|
||||||
|
|
||||||
|
attr.Length = sizeof(attr);
|
||||||
|
attr.RootDirectory = 0;
|
||||||
|
attr.ObjectName = name;
|
||||||
|
attr.Attributes = OBJ_CASE_INSENSITIVE;
|
||||||
|
attr.SecurityDescriptor = NULL;
|
||||||
|
attr.SecurityQualityOfService = NULL;
|
||||||
|
|
||||||
|
if (!(status = NtOpenSymbolicLinkObject( &handle, 0, &attr )))
|
||||||
|
{
|
||||||
|
SERVER_START_REQ( unlink_object )
|
||||||
|
{
|
||||||
|
req->handle = handle;
|
||||||
|
status = wine_server_call( req );
|
||||||
|
}
|
||||||
|
SERVER_END_REQ;
|
||||||
|
NtClose( handle );
|
||||||
|
}
|
||||||
|
return status;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user