mirror of
https://github.com/winfsp/winfsp.git
synced 2025-06-16 00:32:46 -05:00
dll: special case STATUS_OBJECT_NAME_NOT_FOUND and STATUS_OBJECT_NAME_COLLISION to handle open/create via symlink
tst: memfs: support reparse point functionality over a named stream and fix status return on create collision over directory
This commit is contained in:
@ -53,4 +53,17 @@ PWSTR FspDiagIdent(VOID);
|
||||
|
||||
BOOL WINAPI FspServiceConsoleCtrlHandler(DWORD CtrlType);
|
||||
|
||||
static inline ULONG FspPathSuffixIndex(PWSTR FileName)
|
||||
{
|
||||
WCHAR Root[2] = L"\\";
|
||||
PWSTR Remain, Suffix;
|
||||
ULONG Result;
|
||||
|
||||
FspPathSuffix(FileName, &Remain, &Suffix, Root);
|
||||
Result = Remain == Root ? 0 : (ULONG)(Suffix - Remain);
|
||||
FspPathCombine(FileName, Suffix);
|
||||
|
||||
return Result;
|
||||
}
|
||||
|
||||
#endif
|
||||
|
Reference in New Issue
Block a user