mirror of
https://github.com/reactos/reactos.git
synced 2024-12-27 09:34:43 +00:00
DeleteFile should create a handle with DELETE access rights
svn path=/trunk/; revision=14931
This commit is contained in:
parent
9420d88967
commit
38055bc7ed
1 changed files with 7 additions and 8 deletions
|
@ -66,20 +66,19 @@ DeleteFileW (
|
|||
|
||||
DPRINT("NtPathU \'%wZ\'\n", &NtPathU);
|
||||
|
||||
ObjectAttributes.Length = sizeof(OBJECT_ATTRIBUTES);
|
||||
ObjectAttributes.RootDirectory = NULL;
|
||||
ObjectAttributes.ObjectName = &NtPathU;
|
||||
ObjectAttributes.Attributes = OBJ_CASE_INSENSITIVE| OBJ_INHERIT;
|
||||
ObjectAttributes.SecurityDescriptor = NULL;
|
||||
ObjectAttributes.SecurityQualityOfService = NULL;
|
||||
InitializeObjectAttributes(&ObjectAttributes,
|
||||
&NtPathU,
|
||||
OBJ_CASE_INSENSITIVE,
|
||||
NULL,
|
||||
NULL);
|
||||
|
||||
Status = NtCreateFile (&FileHandle,
|
||||
FILE_WRITE_ATTRIBUTES,
|
||||
DELETE,
|
||||
&ObjectAttributes,
|
||||
&IoStatusBlock,
|
||||
NULL,
|
||||
FILE_ATTRIBUTE_NORMAL,
|
||||
0,
|
||||
FILE_SHARE_READ | FILE_SHARE_WRITE | FILE_SHARE_DELETE,
|
||||
FILE_OPEN,
|
||||
FILE_NON_DIRECTORY_FILE,
|
||||
NULL,
|
||||
|
|
Loading…
Reference in a new issue