Changeset 16926 in vbox
- Timestamp:
- Feb 18, 2009 5:26:40 PM (16 years ago)
- svn:sync-xref-src-repo-rev:
- 43057
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Main/ApplianceImpl.cpp
r16867 r16926 1654 1654 DECLCALLBACK(int) Appliance::taskThread(RTTHREAD aThread, void *pvUser) 1655 1655 { 1656 std::auto_ptr 1656 std::auto_ptr<Task> task(static_cast<Task *>(pvUser)); 1657 1657 AssertReturn(task.get(), VERR_GENERAL_FAILURE); 1658 1658 … … 1921 1921 the machine, so make an extra try/catch block. */ 1922 1922 ComPtr<ISession> session; 1923 bool fSessionOpen = false; 1923 1924 ComPtr<IHardDisk> srcHdVBox; 1925 1924 1926 try 1925 1927 { … … 1930 1932 rc = app->mVirtualBox->OpenSession(session, newMachineId); 1931 1933 CheckComRCThrowRC(rc); 1934 fSessionOpen = true; 1932 1935 1933 1936 int result; … … 2027 2030 /* This isn't allowed */ 2028 2031 throw setError(VBOX_E_FILE_ERROR, 2029 tr("Source virtual disk image file '%s' doesn't exist s",2030 strSrcFilePath.c_str()) );2032 tr("Source virtual disk image file '%s' doesn't exist"), 2033 strSrcFilePath.c_str()); 2031 2034 /* Clone the disk image (this is necessary cause the id has 2032 2035 * to be recreated for the case the same hard disk is … … 2100 2103 rc = sMachine->SaveSettings(); 2101 2104 CheckComRCThrowRC(rc); 2102 rc = session->Close(); 2103 CheckComRCThrowRC(rc); 2104 } 2105 } // end for (itHD = avsdeHDs.begin(); 2106 2107 // only now that we're done with all disks, close the session 2108 rc = session->Close(); 2109 CheckComRCThrowRC(rc); 2105 2110 } 2106 2111 catch(HRESULT aRC)
Note:
See TracChangeset
for help on using the changeset viewer.