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:
Bill Zissimopoulos
2016-10-12 11:18:55 -07:00
parent bd952253fb
commit 3e0f2316a7
5 changed files with 141 additions and 25 deletions

View File

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