tst: ntptfs: new passthrough file system

This commit is contained in:
Bill Zissimopoulos
2022-01-06 13:40:26 +00:00
parent 423c70757c
commit 27b52fd167
11 changed files with 2447 additions and 3 deletions

View File

@@ -506,7 +506,7 @@ static void delete_dotest(ULONG Flags, PWSTR Prefix, ULONG FileInfoTimeout)
ASSERT(INVALID_HANDLE_VALUE != Handle);
CloseHandle(Handle);
Success = RemoveDirectoryW(Dir1Path);
Success = RealRemoveDirectoryW(Dir1Path);
ASSERT(!Success);
ASSERT(ERROR_DIR_NOT_EMPTY == GetLastError());

View File

@@ -1341,7 +1341,7 @@ static void stream_delete_dotest(ULONG Flags, PWSTR Prefix, ULONG FileInfoTimeou
ASSERT(INVALID_HANDLE_VALUE != Handle);
CloseHandle(Handle);
Success = RemoveDirectoryW(Dir1Path);
Success = RealRemoveDirectoryW(Dir1Path);
ASSERT(!Success);
ASSERT(ERROR_DIR_NOT_EMPTY == GetLastError());
@@ -1425,7 +1425,7 @@ static void stream_delete_pending_dotest(ULONG Flags, PWSTR Prefix, ULONG FileIn
ASSERT(INVALID_HANDLE_VALUE != Handle);
CloseHandle(Handle);
Success = RemoveDirectoryW(Dir1Path);
Success = RealRemoveDirectoryW(Dir1Path);
ASSERT(!Success);
ASSERT(ERROR_DIR_NOT_EMPTY == GetLastError());

View File

@@ -52,6 +52,11 @@ BOOL WINAPI HookDeleteFileW(
LPCWSTR lpFileName);
BOOL WINAPI HookRemoveDirectoryW(
LPCWSTR lpPathName);
static inline BOOL RealRemoveDirectoryW(
LPCWSTR lpPathName)
{
return RemoveDirectoryW(lpPathName);
}
BOOL WINAPI HookMoveFileExW(
LPCWSTR lpExistingFileName,
LPCWSTR lpNewFileName,