mirror of
https://github.com/winfsp/winfsp.git
synced 2025-07-24 19:23:18 -05:00
tst: ntptfs: new passthrough file system
This commit is contained in:
@@ -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());
|
||||
|
||||
|
@@ -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());
|
||||
|
||||
|
@@ -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,
|
||||
|
Reference in New Issue
Block a user