vbox的更動 35482 路徑 trunk/src/VBox/HostServices/SharedFolders
- 時間撮記:
- 2011-1-11 下午12:53:42 (14 年 以前)
- 位置:
- trunk/src/VBox/HostServices/SharedFolders
- 檔案:
-
- 修改 3 筆資料
圖例:
- 未更動
- 新增
- 刪除
-
trunk/src/VBox/HostServices/SharedFolders/service.cpp
r35346 r35482 1169 1169 rc = VERR_INVALID_PARAMETER; 1170 1170 } 1171 else 1172 if ( paParms[0].type != VBOX_HGCM_SVC_PARM_32BIT /* root */ 1173 || paParms[1].type != VBOX_HGCM_SVC_PARM_PTR /* newPath */ 1174 || paParms[2].type != VBOX_HGCM_SVC_PARM_PTR /* oldPath */ 1175 || paParms[3].type != VBOX_HGCM_SVC_PARM_PTR /* info */ 1171 else if ( paParms[0].type != VBOX_HGCM_SVC_PARM_32BIT /* root */ 1172 || paParms[1].type != VBOX_HGCM_SVC_PARM_PTR /* newPath */ 1173 || paParms[2].type != VBOX_HGCM_SVC_PARM_PTR /* oldPath */ 1174 || paParms[3].type != VBOX_HGCM_SVC_PARM_PTR /* info */ 1176 1175 ) 1177 1176 { … … 1184 1183 SHFLSTRING *pNewPath = (SHFLSTRING *)paParms[1].u.pointer.addr; 1185 1184 SHFLSTRING *pOldPath = (SHFLSTRING *)paParms[2].u.pointer.addr; 1186 RTFSOBJINFO *pInfo = (RTFSOBJINFO *)paParms[3].u.pointer.addr;1185 SHFLFSOBJINFO *pInfo = (SHFLFSOBJINFO *)paParms[3].u.pointer.addr; 1187 1186 uint32_t cbInfo = paParms[3].u.pointer.size; 1188 1187 … … 1190 1189 if ( !ShflStringIsValid(pNewPath, paParms[1].u.pointer.size) 1191 1190 || !ShflStringIsValid(pOldPath, paParms[2].u.pointer.size) 1192 || (cbInfo != sizeof( RTFSOBJINFO))1191 || (cbInfo != sizeof(SHFLFSOBJINFO)) 1193 1192 ) 1194 1193 { -
trunk/src/VBox/HostServices/SharedFolders/vbsf.cpp
r34078 r35482 550 550 Assert(rc == VINF_SUCCESS || rc == VERR_FILE_NOT_FOUND || rc == VERR_PATH_NOT_FOUND); 551 551 } 552 else 553 if (end == src) 552 else if (end == src) 554 553 rc = VINF_SUCCESS; /* trailing delimiter */ 555 554 else … … 2147 2146 } 2148 2147 2149 int vbsfSymlink(SHFLCLIENTDATA *pClient, SHFLROOT root, SHFLSTRING *pNewPath, SHFLSTRING *pOldPath, RTFSOBJINFO *pInfo)2148 int vbsfSymlink(SHFLCLIENTDATA *pClient, SHFLROOT root, SHFLSTRING *pNewPath, SHFLSTRING *pOldPath, SHFLFSOBJINFO *pInfo) 2150 2149 { 2151 2150 int rc = VINF_SUCCESS; … … 2164 2163 rc = RTSymlinkCreate(pszFullNewPath, (const char *)pOldPath->String.utf8, RTSYMLINKTYPE_UNKNOWN); 2165 2164 if (RT_SUCCESS (rc)) 2166 rc = RTPathQueryInfoEx(pszFullNewPath, pInfo, RTFSOBJATTRADD_NOTHING, SHFL_RT_LINK(pClient)); 2165 { 2166 RTFSOBJINFO info; 2167 rc = RTPathQueryInfoEx(pszFullNewPath, &info, RTFSOBJATTRADD_NOTHING, SHFL_RT_LINK(pClient)); 2168 if (RT_SUCCESS(rc)) 2169 vbfsCopyFsObjInfoFromIprt(pInfo, &info); 2170 } 2167 2171 2168 2172 vbsfFreeFullPath(pszFullNewPath); -
trunk/src/VBox/HostServices/SharedFolders/vbsf.h
r33409 r35482 39 39 int vbsfQueryFileInfo(SHFLCLIENTDATA *pClient, SHFLROOT root, SHFLHANDLE Handle, uint32_t flags, uint32_t *pcbBuffer, uint8_t *pBuffer); 40 40 int vbsfReadLink(SHFLCLIENTDATA *pClient, SHFLROOT root, SHFLSTRING *pPath, uint32_t cbPath, uint8_t *pBuffer, uint32_t cbBuffer); 41 int vbsfSymlink(SHFLCLIENTDATA *pClient, SHFLROOT root, SHFLSTRING *pNewPath, SHFLSTRING *pOldPath, RTFSOBJINFO *pInfo);41 int vbsfSymlink(SHFLCLIENTDATA *pClient, SHFLROOT root, SHFLSTRING *pNewPath, SHFLSTRING *pOldPath, SHFLFSOBJINFO *pInfo); 42 42 43 43 #endif /* __VBSF__H */
注意:
瀏覽 TracChangeset
來幫助您使用更動檢視器