1
0
Fork 0
mirror of synced 2025-03-07 03:53:26 +01:00

ntoskrnl.exe: Open symbolic link with DELETE before making them temporary.

This commit is contained in:
Rémi Bernon 2024-03-21 10:08:51 +01:00 committed by Alexandre Julliard
parent 552cec9477
commit f67b4f6bf4

View file

@ -1793,7 +1793,7 @@ NTSTATUS WINAPI IoDeleteSymbolicLink( UNICODE_STRING *name )
attr.SecurityDescriptor = NULL;
attr.SecurityQualityOfService = NULL;
if (!(status = NtOpenSymbolicLinkObject( &handle, 0, &attr )))
if (!(status = NtOpenSymbolicLinkObject( &handle, DELETE, &attr )))
{
NtMakeTemporaryObject( handle );
NtClose( handle );