diff --git a/setter/src/win32.c b/setter/src/win32.c index d9d5fc3..5add6aa 100644 --- a/setter/src/win32.c +++ b/setter/src/win32.c @@ -416,6 +416,12 @@ void GetVolumeInfo(const char *path, size_t *clusterSize) dwFileSystemFlags -= FILE_SUPPORTS_POSIX_UNLINK_RENAME; } + if(dwFileSystemFlags & (DWORD)FS_LFN_APIS) + { + printf("\t\tVolume supports LFN API.\n"); + dwFileSystemFlags -= FS_LFN_APIS; + } + if(dwFileSystemFlags > 0) printf("Unknown flags: 0x%08lx.\n", dwFileSystemFlags); } diff --git a/setter/src/win32.h b/setter/src/win32.h index ed975d8..64b48b3 100644 --- a/setter/src/win32.h +++ b/setter/src/win32.h @@ -177,6 +177,10 @@ Copyright (C) 2011-2020 Natalia Portillo #define FILE_SUPPORTS_POSIX_UNLINK_RENAME 0x00000400 #endif +#ifndef FS_LFN_APIS +#define FS_LFN_APIS 0x00004000 +#endif + #ifndef COMPRESSION_FORMAT_DEFAULT #define COMPRESSION_FORMAT_DEFAULT 1 #endif