[PATCH 2/6] ntdll: FAT filesystems are called "msdosfs" on FreeBSD >= 5

Damjan Jovanovic damjan.jov at gmail.com
Mon Nov 9 22:49:46 CST 2020


Signed-off-by: Damjan Jovanovic <damjan.jov at gmail.com>
---
 dlls/ntdll/unix/file.c | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)
-------------- next part --------------
diff --git a/dlls/ntdll/unix/file.c b/dlls/ntdll/unix/file.c
index c8531bb4f93..3699f8b8891 100644
--- a/dlls/ntdll/unix/file.c
+++ b/dlls/ntdll/unix/file.c
@@ -6349,7 +6349,9 @@ NTSTATUS WINAPI NtQueryVolumeInformationFile( HANDLE handle, IO_STATUS_BLOCK *io
                     fs_type = MOUNTMGR_FS_TYPE_ISO9660;
                 else if (!strcmp( stfs.f_fstypename, "udf" ))
                     fs_type = MOUNTMGR_FS_TYPE_UDF;
-                else if (!strcmp( stfs.f_fstypename, "msdos" ))
+                else if (!strcmp( stfs.f_fstypename, "msdos" )) /* FreeBSD < 5, Apple */
+                    fs_type = MOUNTMGR_FS_TYPE_FAT32;
+                else if (!strcmp( stfs.f_fstypename, "msdosfs" )) /* FreeBSD >= 5 */
                     fs_type = MOUNTMGR_FS_TYPE_FAT32;
 #endif
             }


More information about the wine-devel mailing list