https://git.reactos.org/?p=reactos.git;a=commitdiff;h=b935bfe6cb4b675af10d39835db8bcae7a5d41d8
commit b935bfe6cb4b675af10d39835db8bcae7a5d41d8 Author: Hervé Poussineau <[email protected]> AuthorDate: Tue Sep 13 23:15:27 2022 +0200 Commit: hpoussin <[email protected]> CommitDate: Sat Sep 24 12:12:33 2022 +0200 [VFATFS] Return 'FATX' as FsType for FATX volumes CORE-16373 --- drivers/filesystems/vfatfs/volume.c | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/drivers/filesystems/vfatfs/volume.c b/drivers/filesystems/vfatfs/volume.c index e1eba1fd2a7..d1f10d05646 100644 --- a/drivers/filesystems/vfatfs/volume.c +++ b/drivers/filesystems/vfatfs/volume.c @@ -100,13 +100,14 @@ FsdGetFsAttributeInformation( ASSERT(*BufferLength >= sizeof(FILE_FS_ATTRIBUTE_INFORMATION)); *BufferLength -= FIELD_OFFSET(FILE_FS_ATTRIBUTE_INFORMATION, FileSystemName); - if (DeviceExt->FatInfo.FatType == FAT32) + switch (DeviceExt->FatInfo.FatType) { - pName = L"FAT32"; - } - else - { - pName = L"FAT"; + case FAT12: pName = L"FAT"; break; + case FAT16: pName = L"FAT"; break; + case FAT32: pName = L"FAT32"; break; + case FATX16: pName = L"FATX"; break; + case FATX32: pName = L"FATX"; break; + default: return STATUS_NOT_SUPPORTED; } Length = wcslen(pName) * sizeof(WCHAR);
