From 0e2c129854ac0e57cb8970c9145ae689bc4c7714 Mon Sep 17 00:00:00 2001 From: Mounir IDRASSI Date: Sat, 27 May 2017 20:15:23 +0200 Subject: Windows Driver: enhance detection of FAT volumes. --- src/Driver/Ntdriver.c | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'src/Driver/Ntdriver.c') diff --git a/src/Driver/Ntdriver.c b/src/Driver/Ntdriver.c index f8db446f..3505826b 100644 --- a/src/Driver/Ntdriver.c +++ b/src/Driver/Ntdriver.c @@ -1353,12 +1353,14 @@ NTSTATUS ProcessMainDeviceControlIrp (PDEVICE_OBJECT DeviceObject, PEXTENSION Ex switch (BE64 (*(uint64 *) readBuffer)) { case 0xEB52904E54465320: // NTFS - case 0xEB3C904D53444F53: // FAT16 + case 0xEB3C904D53444F53: // FAT16/FAT32 case 0xEB58904D53444F53: // FAT32 case 0xEB76904558464154: // exFAT case 0x0000005265465300: // ReFS - case 0xEB58906D6B66732E: // FAT by mkfs.fat - case 0xEB58906D6B646F73: // FAT by mkfs.vfat/mkdosfs + case 0xEB58906D6B66732E: // FAT32 mkfs.fat + case 0xEB58906D6B646F73: // FAT32 mkfs.vfat/mkdosfs + case 0xEB3C906D6B66732E: // FAT16/FAT12 mkfs.fat + case 0xEB3C906D6B646F73: // FAT16/FAT12 mkfs.vfat/mkdosfs opentest->FilesystemDetected = TRUE; break; } -- cgit v1.2.3