Changeset 66099 in vbox for trunk/src/VBox/HostServices/SharedFolders/testcase
- Timestamp:
- Mar 14, 2017 7:06:16 PM (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/HostServices/SharedFolders/testcase/tstSharedFolderService.cpp
r66038 r66099 755 755 756 756 static int listDir(VBOXHGCMSVCFNTABLE *psvcTable, SHFLROOT root, 757 SHFLHANDLE handle, uint32_t fFlags, uint32_t cb,757 SHFLHANDLE handle, uint32_t fFlags, 758 758 const char *pcszPath, void *pvBuf, uint32_t cbBuf, 759 759 uint32_t resumePoint, uint32_t *pcFiles) … … 766 766 aParms[1].setUInt64(handle); 767 767 aParms[2].setUInt32(fFlags); 768 aParms[3].setUInt32(cb );768 aParms[3].setUInt32(cbBuf); 769 769 if (pcszPath) 770 770 { … … 1020 1020 PRTDIR pDir = (PRTDIR)&g_aTestDirHandles[g_iNextDirHandle++ % RT_ELEMENTS(g_aTestDirHandles)]; 1021 1021 SHFLHANDLE Handle; 1022 SHFLDIRINFO DirInfo; 1022 union 1023 { 1024 SHFLDIRINFO DirInfo; 1025 uint8_t abBuffer[sizeof(SHFLDIRINFO) + 2 * sizeof(RTUTF16)]; 1026 } Buf; 1023 1027 uint32_t cFiles; 1024 1028 int rc; … … 1031 1035 SHFL_CF_DIRECTORY | SHFL_CF_ACCESS_READ, &Handle, NULL); 1032 1036 RTTEST_CHECK_RC_OK(hTest, rc); 1033 rc = listDir(&svcTable, Root, Handle, 0, sizeof (SHFLDIRINFO), NULL, 1034 &DirInfo, sizeof(DirInfo), 0, &cFiles); 1037 rc = listDir(&svcTable, Root, Handle, 0, NULL, &Buf.DirInfo, sizeof(Buf), 0, &cFiles); 1035 1038 RTTEST_CHECK_RC(hTest, rc, VERR_NO_MORE_FILES); 1036 1039 RTTEST_CHECK_MSG(hTest, g_testRTDirReadExDir == pDir, (hTest, "Dir=%p\n", g_testRTDirReadExDir));
Note:
See TracChangeset
for help on using the changeset viewer.