1
0
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:
Bill Zissimopoulos
2016-10-17 21:04:22 -07:00
parent 628dae38d7
commit 82a9c8e80f
3 changed files with 186 additions and 46 deletions

View File

@@ -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