kernelbase: Open object with DELETE access for NtMakeTemporaryObject().
Fixes: a4ef56e1d9
This commit is contained in:
parent
a7ad588ec5
commit
4b0b489f6f
1 changed files with 1 additions and 1 deletions
|
@ -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 );
|
||||
|
|
Loading…
Add table
Reference in a new issue