Changeset 22487 in vbox
- Timestamp:
- Aug 26, 2009 8:55:09 PM (16 years ago)
- svn:sync-xref-src-repo-rev:
- 51507
- Location:
- trunk/src/VBox/Main
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Main/ApplianceImpl.cpp
r22317 r22487 989 989 * disk images in */ 990 990 vrc = RTDirCreateTemp(pszTmpDir); 991 if (RT_FAILURE( rc))991 if (RT_FAILURE(vrc)) 992 992 throw setError(VBOX_E_FILE_ERROR, 993 993 tr("Cannot create temporary directory '%s'"), pszTmpDir); … … 1860 1860 * in */ 1861 1861 vrc = RTDirCreateTemp(pszTmpDir); 1862 if (RT_FAILURE( rc))1862 if (RT_FAILURE(vrc)) 1863 1863 throw setError(VBOX_E_FILE_ERROR, 1864 1864 tr("Cannot create temporary directory '%s'"), pszTmpDir); … … 2970 2970 * disk images in */ 2971 2971 vrc = RTDirCreateTemp(pszTmpDir); 2972 if (RT_FAILURE( rc))2972 if (RT_FAILURE(vrc)) 2973 2973 throw setError(VBOX_E_FILE_ERROR, 2974 2974 tr("Cannot create temporary directory '%s'"), pszTmpDir); -
trunk/src/VBox/Main/ConsoleImpl.cpp
r22480 r22487 7329 7329 do 7330 7330 { 7331 LogFlowFunc 7331 LogFlowFunc(("Reattaching new differencing hard disks...\n")); 7332 7332 7333 7333 com::SafeIfaceArray<IHardDiskAttachment> atts; 7334 rc = that->mMachine-> 7335 COMGETTER(HardDiskAttachments) (ComSafeArrayAsOutParam (atts)); 7334 rc = that->mMachine->COMGETTER(HardDiskAttachments)(ComSafeArrayAsOutParam(atts)); 7336 7335 if (FAILED (rc)) 7337 7336 break; … … 7350 7349 */ 7351 7350 rc = atts[i]->COMGETTER(Controller)(&controllerName); 7352 if (FAILED 7351 if (FAILED(rc)) 7353 7352 break; 7354 7353 7355 7354 rc = that->mMachine->GetStorageControllerByName(controllerName, controller.asOutParam()); 7356 if (FAILED 7355 if (FAILED(rc)) 7357 7356 break; 7358 7357 … … 7363 7362 * to access Console. 7364 7363 */ 7365 int vrc = VMR3ReqCall (that->mpVM, VMCPUID_ANY, &pReq, RT_INDEFINITE_WAIT, 7366 (PFNRT)reconfigureHardDisks, 5, that->mpVM, lInstance, 7367 enmController, atts [i], &rc); 7368 if (VBOX_SUCCESS (rc)) 7369 rc = pReq->iStatus; 7370 VMR3ReqFree (pReq); 7371 if (FAILED (rc)) 7372 break; 7373 if (VBOX_FAILURE (vrc)) 7364 int vrc = VMR3ReqCall(that->mpVM, VMCPUID_ANY, &pReq, RT_INDEFINITE_WAIT, 7365 (PFNRT)reconfigureHardDisks, 5, that->mpVM, lInstance, enmController, atts[i], &rc); 7366 if (RT_SUCCESS(vrc)) 7367 vrc = pReq->iStatus; 7368 VMR3ReqFree(pReq); 7369 if (RT_FAILURE(vrc)) 7374 7370 { 7375 errMsg = Utf8StrFmt (Console::tr("%Rrc"), vrc);7371 errMsg = Utf8StrFmt(Console::tr("%Rrc"), vrc); 7376 7372 rc = E_FAIL; 7377 7373 break; 7378 7374 } 7375 if (FAILED(rc)) 7376 break; 7379 7377 } 7380 7378 } -
trunk/src/VBox/Main/MachineImpl.cpp
r22318 r22487 5929 5929 ULONG portCount; 5930 5930 rc = pCtl->COMGETTER(PortCount)(&portCount); 5931 ComAssert RCRet(rc, rc);5931 ComAssertComRCRet(rc, rc); 5932 5932 ctl.ulPortCount = portCount; 5933 5933 … … 5940 5940 || (FAILED(rc = pCtl->GetIDEEmulationPort(3, (LONG*)&ctl.lIDE1SlaveEmulationPort))) 5941 5941 ) 5942 ComAssert RCRet(rc, rc);5942 ComAssertComRCRet(rc, rc); 5943 5943 } 5944 5944 5945 5945 /* save the devices now. */ 5946 5946 rc = saveStorageDevices(pCtl, ctl); 5947 ComAssert RCRet(rc, rc);5947 ComAssertComRCRet(rc, rc); 5948 5948 5949 5949 data.llStorageControllers.push_back(ctl);
Note:
See TracChangeset
for help on using the changeset viewer.