From 46462f7b0b7e3be14f41aa9d6d1cb2802ecc86bd Mon Sep 17 00:00:00 2001 From: Natalia Portillo Date: Thu, 7 May 2020 18:20:52 +0100 Subject: [PATCH] Add FS_LFN_APIS. --- setter/src/win32.c | 6 ++++++ setter/src/win32.h | 4 ++++ 2 files changed, 10 insertions(+) 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