Changeset 73784 in vbox for trunk/src/VBox/Main/src-server/ApplianceImplImport.cpp
- Timestamp:
- Aug 20, 2018 11:45:50 AM (7 years ago)
- svn:sync-xref-src-repo-rev:
- 124467
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Main/src-server/ApplianceImplImport.cpp
r73743 r73784 2564 2564 /* Kick off the creation of a dynamic growing disk image with the given capacity. */ 2565 2565 rc = pTargetMedium->CreateBaseStorage(di.iCapacity / _1M, 2566 ComSafeArrayAsInParam(mediumVariant),2567 pProgressImport.asOutParam());2566 ComSafeArrayAsInParam(mediumVariant), 2567 pProgressImport.asOutParam()); 2568 2568 if (FAILED(rc)) throw rc; 2569 2569 … … 2625 2625 ComObjPtr<Medium> nullParent; 2626 2626 ComObjPtr<Progress> pProgressImportTmp; 2627 rc = pProgressImportTmp.createObject(); 2628 if (FAILED(rc)) throw rc; 2629 rc = pProgressImportTmp->init(mVirtualBox, 2630 static_cast<IAppliance*>(this), 2631 Utf8StrFmt(tr("Importing medium '%s'"), 2632 strAbsDstPath.c_str()), 2633 TRUE); 2634 if (FAILED(rc)) throw rc; 2635 pProgressImportTmp.queryInterfaceTo(pProgressImport.asOutParam()); 2636 /* pProgressImportTmp is in parameter for Medium::i_importFile, 2637 * which is somewhat unusual and might be changed later. */ 2627 2638 rc = pTargetMedium->i_importFile(strSrcFilePath.c_str(), 2628 2639 srcFormat, … … 2631 2642 nullParent, 2632 2643 pProgressImportTmp); 2633 pProgressImportTmp.queryInterfaceTo(pProgressImport.asOutParam());2634 2644 RTVfsIoStrmRelease(hVfsIosReadAhead); 2635 2645 hVfsIosSrc = NIL_RTVFSIOSTREAM;
Note:
See TracChangeset
for help on using the changeset viewer.