[VFATFS] Return 'FATX' as FsType for FATX volumes

CORE-16373
This commit is contained in:
Hervé Poussineau 2022-09-13 23:15:27 +02:00 committed by hpoussin
parent 15ea997774
commit b935bfe6cb

View file

@ -100,13 +100,14 @@ FsdGetFsAttributeInformation(
ASSERT(*BufferLength >= sizeof(FILE_FS_ATTRIBUTE_INFORMATION)); ASSERT(*BufferLength >= sizeof(FILE_FS_ATTRIBUTE_INFORMATION));
*BufferLength -= FIELD_OFFSET(FILE_FS_ATTRIBUTE_INFORMATION, FileSystemName); *BufferLength -= FIELD_OFFSET(FILE_FS_ATTRIBUTE_INFORMATION, FileSystemName);
if (DeviceExt->FatInfo.FatType == FAT32) switch (DeviceExt->FatInfo.FatType)
{ {
pName = L"FAT32"; case FAT12: pName = L"FAT"; break;
} case FAT16: pName = L"FAT"; break;
else case FAT32: pName = L"FAT32"; break;
{ case FATX16: pName = L"FATX"; break;
pName = L"FAT"; case FATX32: pName = L"FATX"; break;
default: return STATUS_NOT_SUPPORTED;
} }
Length = wcslen(pName) * sizeof(WCHAR); Length = wcslen(pName) * sizeof(WCHAR);