Fixed the required access rights for formating a disk.

svn path=/trunk/; revision=14210
This commit is contained in:
Hartmut Birr 2005-03-20 09:46:13 +00:00
parent 572aa1faf4
commit f0e4451f31
2 changed files with 2 additions and 2 deletions

View file

@ -57,7 +57,7 @@ VfatFormat (PUNICODE_STRING DriveRoot,
NULL); NULL);
Status = NtOpenFile(&FileHandle, Status = NtOpenFile(&FileHandle,
FILE_WRITE_ACCESS | FILE_WRITE_ATTRIBUTES, FILE_GENERIC_READ | FILE_GENERIC_WRITE,
&ObjectAttributes, &ObjectAttributes,
&Iosb, &Iosb,
FILE_SHARE_READ, FILE_SHARE_READ,

View file

@ -55,7 +55,7 @@ VfatxFormat (PUNICODE_STRING DriveRoot,
NULL); NULL);
Status = NtOpenFile(&FileHandle, Status = NtOpenFile(&FileHandle,
FILE_WRITE_ACCESS | FILE_WRITE_ATTRIBUTES, FILE_GENERIC_READ | FILE_GENERIC_WRITE,
&ObjectAttributes, &ObjectAttributes,
&Iosb, &Iosb,
FILE_SHARE_READ, FILE_SHARE_READ,