- Timestamp:
- Apr 6, 2009 3:19:22 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VBoxManage/VBoxManageImport.cpp
r18754 r18775 43 43 #include <iprt/getopt.h> 44 44 #include <iprt/ctype.h> 45 #include <iprt/path.h> 45 46 46 47 #include <VBox/log.h> … … 215 216 do 216 217 { 217 Bstr bstrOvfFilename(strOvfFilename);218 218 ComPtr<IAppliance> pAppliance; 219 219 CHECK_ERROR_BREAK(a->virtualBox, CreateAppliance(pAppliance.asOutParam())); 220 220 221 CHECK_ERROR_BREAK(pAppliance, Read(bstrOvfFilename)); 221 char *pszAbsFilePath = RTPathAbsDup(strOvfFilename.c_str()); 222 CHECK_ERROR_BREAK(pAppliance, Read(Bstr(pszAbsFilePath))); 223 RTStrFree(pszAbsFilePath); 222 224 223 225 // call interpret(); this can yield both warnings and errors, so we need … … 710 712 711 713 ComPtr<IProgress> progress; 712 CHECK_ERROR_BREAK(pAppliance, Write(Bstr("ovf-0.9"), Bstr(strOutputFile), progress.asOutParam())); 714 char *pszAbsFilePath = RTPathAbsDup(strOutputFile.c_str()); 715 CHECK_ERROR_BREAK(pAppliance, Write(Bstr("ovf-0.9"), Bstr(pszAbsFilePath), progress.asOutParam())); 716 RTStrFree(pszAbsFilePath); 713 717 714 718 showProgress(progress);
Note:
See TracChangeset
for help on using the changeset viewer.