- Timestamp:
- Nov 27, 2013 3:42:13 PM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VBoxManage/VBoxManageGuestCtrl.cpp
r49621 r49683 1499 1499 fCloseSession = !fDetached; 1500 1500 1501 /* 1502 * If execution was aborted from the host side (signal handler), 1503 * close the guest session in any case. 1504 */ 1501 /* 1502 * If execution was aborted from the host side (signal handler), 1503 * close the guest session in any case. 1504 */ 1505 1505 if (g_fGuestCtrlCanceled) 1506 1506 fCloseSession = true; … … 2950 2950 rc = pCtx->pGuestSession->DirectoryQueryInfo(Bstr(strDest).raw(), pFsObjInfo.asOutParam()); 2951 2951 if (FAILED(rc)) 2952 return RTMsgErrorExit(RTEXITCODE_FAILURE, "Destination must be a directory \n");2952 return RTMsgErrorExit(RTEXITCODE_FAILURE, "Destination must be a directory when speciying multiple sources\n"); 2953 2953 } 2954 2954 … … 2984 2984 it++; 2985 2985 continue; /* Skip. */ 2986 }2987 2988 if (!fSourceIsDirectory)2989 {2990 char *pszFileName = RTPathFilename(strCurSource.c_str());2991 if (!pszFileName)2992 {2993 RTMsgError("Unable to extract file name from source \"%s\"",2994 strCurSource.c_str());2995 break;2996 }2997 2998 char szFileDest[RTPATH_MAX];2999 vrc = RTPathJoin(szFileDest, sizeof(szFileDest), strDest.c_str(), pszFileName);3000 if (RT_FAILURE(vrc))3001 {3002 RTMsgError("Unable to build destination name for source \"%s\", rc=%Rrc",3003 strCurSource.c_str(), vrc);3004 break;3005 }3006 3007 strCurDest = szFileDest;3008 2986 } 3009 2987
Note:
See TracChangeset
for help on using the changeset viewer.