From f0e4451f315c405df65ba46342c90e9876cdb35d Mon Sep 17 00:00:00 2001 From: Hartmut Birr Date: Sun, 20 Mar 2005 09:46:13 +0000 Subject: [PATCH] Fixed the required access rights for formating a disk. svn path=/trunk/; revision=14210 --- reactos/lib/fslib/vfatlib/vfatlib.c | 2 +- reactos/lib/fslib/vfatxlib/vfatxlib.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/reactos/lib/fslib/vfatlib/vfatlib.c b/reactos/lib/fslib/vfatlib/vfatlib.c index 1a05e5e94bb..a361375554a 100755 --- a/reactos/lib/fslib/vfatlib/vfatlib.c +++ b/reactos/lib/fslib/vfatlib/vfatlib.c @@ -57,7 +57,7 @@ VfatFormat (PUNICODE_STRING DriveRoot, NULL); Status = NtOpenFile(&FileHandle, - FILE_WRITE_ACCESS | FILE_WRITE_ATTRIBUTES, + FILE_GENERIC_READ | FILE_GENERIC_WRITE, &ObjectAttributes, &Iosb, FILE_SHARE_READ, diff --git a/reactos/lib/fslib/vfatxlib/vfatxlib.c b/reactos/lib/fslib/vfatxlib/vfatxlib.c index c91f71ddf5d..9e514b6ba92 100644 --- a/reactos/lib/fslib/vfatxlib/vfatxlib.c +++ b/reactos/lib/fslib/vfatxlib/vfatxlib.c @@ -55,7 +55,7 @@ VfatxFormat (PUNICODE_STRING DriveRoot, NULL); Status = NtOpenFile(&FileHandle, - FILE_WRITE_ACCESS | FILE_WRITE_ATTRIBUTES, + FILE_GENERIC_READ | FILE_GENERIC_WRITE, &ObjectAttributes, &Iosb, FILE_SHARE_READ,