mirror of
https://github.com/winfsp/winfsp.git
synced 2025-04-24 09:23:37 -05:00
winfsp-tests: dirctl-test
This commit is contained in:
parent
ce8bac3898
commit
c898100dac
@ -110,8 +110,8 @@ void querydir_dotest(ULONG Flags, PWSTR Prefix, ULONG FileInfoTimeout)
|
||||
} while (FindNextFileW(Handle, &FindData));
|
||||
ASSERT(ERROR_NO_MORE_FILES == GetLastError());
|
||||
|
||||
ASSERT(100 == FileCount);
|
||||
ASSERT(101 * 100 / 2 == FileTotal);
|
||||
ASSERT(10 == FileCount);
|
||||
ASSERT(11 * 10 / 2 == FileTotal);
|
||||
|
||||
Success = FindClose(Handle);
|
||||
ASSERT(Success);
|
||||
|
@ -707,7 +707,7 @@ static BOOLEAN ReadDirectoryEnumFn(MEMFS_FILE_NODE *FileNode, PVOID Context0)
|
||||
return TRUE;
|
||||
|
||||
memset(DirInfo->Padding, 0, sizeof DirInfo->Padding);
|
||||
DirInfo->Size = sizeof(FSP_FSCTL_DIR_INFO) + wcslen(FileNode->FileName) * sizeof(WCHAR);
|
||||
DirInfo->Size = (UINT16)(sizeof(FSP_FSCTL_DIR_INFO) + wcslen(FileNode->FileName) * sizeof(WCHAR));
|
||||
DirInfo->FileInfo = FileNode->FileInfo;
|
||||
DirInfo->NextOffset = FileNode->FileInfo.IndexNumber;
|
||||
memcpy(DirInfo->FileNameBuf, FileNode->FileName, DirInfo->Size - sizeof(FSP_FSCTL_DIR_INFO));
|
||||
|
Loading…
x
Reference in New Issue
Block a user