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