Changeset 67227 in vbox for trunk/src/VBox/Frontends/VBoxManage
- Timestamp:
- Jun 2, 2017 9:28:40 AM (8 years ago)
- svn:sync-xref-src-repo-rev:
- 115916
- Location:
- trunk/src/VBox/Frontends/VBoxManage
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VBoxManage/VBoxManageDisk.cpp
r66997 r67227 509 509 uint64_t cbResize = 0; 510 510 const char *pszFilenameOrUuid = NULL; 511 c onst char *pszNewLocation = NULL;511 char *pszNewLocation = NULL; 512 512 513 513 int c; … … 602 602 case 'm': // --move 603 603 /* Get a new location */ 604 pszNewLocation = RT StrDup(ValueUnion.psz);604 pszNewLocation = RTPathAbsDup(ValueUnion.psz); 605 605 fModifyLocation = true; 606 606 break; … … 760 760 ComPtr<IProgress> pProgress; 761 761 Utf8Str strLocation(pszNewLocation); 762 CHECK_ERROR(pMedium, SetLocation(Bstr(pszNewLocation).raw(), pProgress.asOutParam())); 762 RTStrFree(pszNewLocation); 763 CHECK_ERROR(pMedium, SetLocation(Bstr(strLocation).raw(), pProgress.asOutParam())); 763 764 764 765 if (SUCCEEDED(rc) && !pProgress.isNull()) -
trunk/src/VBox/Frontends/VBoxManage/VBoxManageHelp.cpp
r67208 r67227 1150 1150 " [--compact]\n" 1151 1151 " [--resize <megabytes>|--resizebyte <bytes>]\n" 1152 " [--move < full path to a new location>]\n"1152 " [--move <path]\n" 1153 1153 " [--description <description string>]" 1154 1154 "\n", SEP);
Note:
See TracChangeset
for help on using the changeset viewer.