mirror of
https://github.com/winfsp/winfsp.git
synced 2025-12-23 12:33:03 -06:00
dll: FspFileSystemSetMountPoint: now supports directories
This commit is contained in:
@@ -66,4 +66,14 @@ static inline ULONG FspPathSuffixIndex(PWSTR FileName)
|
||||
return Result;
|
||||
}
|
||||
|
||||
static inline BOOLEAN FspPathIsDrive(PWSTR FileName)
|
||||
{
|
||||
return
|
||||
(
|
||||
(L'A' <= FileName[0] && FileName[0] <= L'Z') ||
|
||||
(L'a' <= FileName[0] && FileName[0] <= L'z')
|
||||
) &&
|
||||
L':' == FileName[1] || L'\0' == FileName[2];
|
||||
}
|
||||
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user