1
0
mirror of https://github.com/wine-mirror/wine synced 2024-07-01 07:14:31 +00:00

kernelbase: Open object with DELETE access for NtMakeTemporaryObject().

Fixes: a4ef56e1d9
This commit is contained in:
Jinoh Kang 2024-03-21 21:24:16 +09:00 committed by Alexandre Julliard
parent a7ad588ec5
commit 4b0b489f6f

View File

@ -400,7 +400,7 @@ BOOL WINAPI DECLSPEC_HOTPATCH DefineDosDeviceW( DWORD flags, const WCHAR *device
InitializeObjectAttributes( &attr, &nt_name, OBJ_CASE_INSENSITIVE | OBJ_PERMANENT, 0, NULL );
if (flags & DDD_REMOVE_DEFINITION)
{
if (!set_ntstatus( NtOpenSymbolicLinkObject( &handle, 0, &attr ) ))
if (!set_ntstatus( NtOpenSymbolicLinkObject( &handle, DELETE, &attr ) ))
return FALSE;
status = NtMakeTemporaryObject( handle );