Commit 4b0b489f authored by Jinoh Kang's avatar Jinoh Kang Committed by Alexandre Julliard

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

Fixes: a4ef56e1
parent a7ad588e
......@@ -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 );
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment