儲存庫 vbox 的更動 66091
- 時間撮記:
- 2017-3-14 下午02:03:16 (8 年 以前)
- svn:sync-xref-src-repo-rev:
- 113966
- 位置:
- trunk/src/VBox/HostServices/SharedFolders
- 檔案:
-
- 修改 4 筆資料
圖例:
- 未更動
- 新增
- 刪除
-
trunk/src/VBox/HostServices/SharedFolders/Makefile.kmk
r60765 r66091 41 41 vbsf.cpp \ 42 42 vbsfpath.cpp \ 43 vbsfpathabs.cpp \ 43 44 mappings.cpp 44 45 VBoxSharedFolders_SOURCES.win = \ -
trunk/src/VBox/HostServices/SharedFolders/mappings.cpp
r65998 r66091 20 20 21 21 #include "mappings.h" 22 #include "vbsfpath.h" 22 23 #include <iprt/alloc.h> 23 24 #include <iprt/assert.h> … … 228 229 likely to get into trouble with buffer sizes in vbsfPathGuestToHost. */ 229 230 char szAbsFolderName[RTPATH_MAX]; 230 int rc = RTPathAbs(pszFolderName, szAbsFolderName, sizeof(szAbsFolderName));231 int rc = vbsfPathAbs(NULL, pszFolderName, szAbsFolderName, sizeof(szAbsFolderName)); 231 232 AssertRCReturn(rc, rc); 232 233 -
trunk/src/VBox/HostServices/SharedFolders/vbsfpath.cpp
r66039 r66091 598 598 599 599 /* Construct the full host path removing '.' and '..'. */ 600 rc = RTPathAbsEx(pszRoot, pchVerifiedPath, pszFullPath, cbFullPathAlloc);600 rc = vbsfPathAbs(pszRoot, pchVerifiedPath, pszFullPath, cbFullPathAlloc); 601 601 if (RT_SUCCESS(rc)) 602 602 { … … 649 649 else 650 650 { 651 LogFunc((" RTPathAbsEx%Rrc\n", rc));651 LogFunc(("vbsfPathAbs %Rrc\n", rc)); 652 652 } 653 653 } -
trunk/src/VBox/HostServices/SharedFolders/vbsfpath.h
r65123 r66091 51 51 void vbsfFreeHostPath(char *pszHostPath); 52 52 53 /** 54 * Build the absolute path by combining an absolute pszRoot and a relative pszPath. 55 * The resulting path does not contain '.' and '..' components. 56 * Similar to RTPathAbsEx but with support for Windows extended-length paths ("\\?\" prefix). 57 * Uses RTPathAbsEx for regular paths and on non-Windows hosts. 58 * 59 * @param pszRoot The absolute prefix. It is copied to the pszAbsPath without any processing. 60 * If NULL then the pszPath must be converted to the absolute path. 61 * @param pszPath The relative path to be appended to pszRoot. Already has correct delimiters (RTPATH_SLASH). 62 * @param pszAbsPath Where to store the resulting absolute path. 63 * @param cbAbsPath Size of pszAbsBuffer in bytes. 64 */ 65 int vbsfPathAbs(const char *pszRoot, const char *pszPath, char *pszAbsPath, size_t cbAbsPath); 66 53 67 #endif /* __VBSFPATH__H */
注意:
瀏覽 TracChangeset
來幫助您使用更動檢視器