vbox的更動 66099 路徑 trunk/src/VBox/HostServices
- 時間撮記:
- 2017-3-14 下午07:06:16 (8 年 以前)
- 位置:
- trunk/src/VBox/HostServices/SharedFolders
- 檔案:
-
- 修改 2 筆資料
圖例:
- 未更動
- 新增
- 刪除
-
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)); -
trunk/src/VBox/HostServices/SharedFolders/vbsf.cpp
r66038 r66099 1615 1615 SHFLVOLINFO *pSFDEntry; 1616 1616 char *pszFullPath = NULL; 1617 SHFLSTRING dummy; 1617 union 1618 { 1619 SHFLSTRING Dummy; 1620 uint8_t abDummy[SHFLSTRING_HEADER_SIZE + sizeof(RTUTF16)]; 1621 } Buf; 1618 1622 1619 1623 if (pcbBuffer == 0 || pBuffer == 0 || *pcbBuffer < sizeof(SHFLVOLINFO)) … … 1629 1633 pSFDEntry = (PSHFLVOLINFO)pBuffer; 1630 1634 1631 ShflStringInitBuffer(& dummy, sizeof(dummy));1632 dummy.String.ucs2[0] = '\0';1633 rc = vbsfBuildFullPath(pClient, root, & dummy, sizeof(dummy), &pszFullPath, NULL);1635 ShflStringInitBuffer(&Buf.Dummy, sizeof(Buf)); 1636 Buf.Dummy.String.ucs2[0] = '\0'; 1637 rc = vbsfBuildFullPath(pClient, root, &Buf.Dummy, sizeof(Buf), &pszFullPath, NULL); 1634 1638 1635 1639 if (RT_SUCCESS(rc))
注意:
瀏覽 TracChangeset
來幫助您使用更動檢視器