ntoskrnl.exe: Open symbolic link with DELETE before making them temporary.
This commit is contained in:
parent
552cec9477
commit
f67b4f6bf4
1 changed files with 1 additions and 1 deletions
|
@ -1793,7 +1793,7 @@ NTSTATUS WINAPI IoDeleteSymbolicLink( UNICODE_STRING *name )
|
||||||
attr.SecurityDescriptor = NULL;
|
attr.SecurityDescriptor = NULL;
|
||||||
attr.SecurityQualityOfService = NULL;
|
attr.SecurityQualityOfService = NULL;
|
||||||
|
|
||||||
if (!(status = NtOpenSymbolicLinkObject( &handle, 0, &attr )))
|
if (!(status = NtOpenSymbolicLinkObject( &handle, DELETE, &attr )))
|
||||||
{
|
{
|
||||||
NtMakeTemporaryObject( handle );
|
NtMakeTemporaryObject( handle );
|
||||||
NtClose( handle );
|
NtClose( handle );
|
||||||
|
|
Loading…
Add table
Reference in a new issue