Changeset 95140 in vbox for trunk/src/VBox/Frontends/VBoxManage/VBoxManageAppliance.cpp
- Timestamp:
- May 31, 2022 9:11:39 AM (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VBoxManage/VBoxManageAppliance.cpp
r94236 r95140 218 218 RTEXITCODE handleImportAppliance(HandlerArg *arg) 219 219 { 220 HRESULT rc = S_OK;220 HRESULT hrc = S_OK; 221 221 APPLIANCETYPE enmApplType = NOT_SET; 222 222 Utf8Str strOvfFilename; … … 497 497 RTStrFree(pszAbsFilePath); 498 498 499 rc = showProgress(progressRead);499 hrc = showProgress(progressRead); 500 500 CHECK_PROGRESS_ERROR_RET(progressRead, (Appliance::tr("Appliance read failed")), RTEXITCODE_FAILURE); 501 501 … … 511 511 // to tinker with the error info a bit 512 512 RTStrmPrintf(g_pStdErr, Appliance::tr("Interpreting %ls...\n"), path.raw()); 513 rc = pAppliance->Interpret();513 hrc = pAppliance->Interpret(); 514 514 com::ErrorInfoKeeper eik; 515 515 … … 528 528 529 529 eik.restore(); 530 if (FAILED( rc)) // during interpret, after printing warnings530 if (FAILED(hrc)) // during interpret, after printing warnings 531 531 { 532 com::GlueHandleComError(pAppliance, "Interpret()", rc, __FILE__, __LINE__);532 com::GlueHandleComError(pAppliance, "Interpret()", hrc, __FILE__, __LINE__); 533 533 break; 534 534 } … … 1394 1394 ImportMachines(ComSafeArrayAsInParam(options), progress.asOutParam())); 1395 1395 1396 rc = showProgress(progress);1396 hrc = showProgress(progress); 1397 1397 CHECK_PROGRESS_ERROR_RET(progress, (Appliance::tr("Appliance import failed")), RTEXITCODE_FAILURE); 1398 1398 1399 if (SUCCEEDED( rc))1399 if (SUCCEEDED(hrc)) 1400 1400 RTPrintf(Appliance::tr("Successfully imported the appliance.\n")); 1401 1401 } … … 1403 1403 } while (0); 1404 1404 1405 return SUCCEEDED( rc) ? RTEXITCODE_SUCCESS : RTEXITCODE_FAILURE;1405 return SUCCEEDED(hrc) ? RTEXITCODE_SUCCESS : RTEXITCODE_FAILURE; 1406 1406 } 1407 1407 … … 1485 1485 RTEXITCODE handleExportAppliance(HandlerArg *a) 1486 1486 { 1487 HRESULT rc = S_OK;1487 HRESULT hrc = S_OK; 1488 1488 1489 1489 Utf8Str strOutputFile; … … 1761 1761 } 1762 1762 1763 if (FAILED( rc))1763 if (FAILED(hrc)) 1764 1764 break; 1765 1765 } 1766 1766 1767 if (FAILED( rc))1767 if (FAILED(hrc)) 1768 1768 break; 1769 1769 … … 1928 1928 } 1929 1929 1930 if (FAILED( rc))1930 if (FAILED(hrc)) 1931 1931 break; 1932 1932 … … 1975 1975 RTStrFree(pszAbsFilePath); 1976 1976 1977 rc = showProgress(progress);1977 hrc = showProgress(progress); 1978 1978 CHECK_PROGRESS_ERROR_RET(progress, (Appliance::tr("Appliance write failed")), RTEXITCODE_FAILURE); 1979 1979 1980 if (SUCCEEDED( rc))1980 if (SUCCEEDED(hrc)) 1981 1981 RTPrintf(Appliance::tr("Successfully exported %d machine(s).\n", "", llMachines.size()), llMachines.size()); 1982 1982 … … 2039 2039 ComPtr<IProgress> progress1; 2040 2040 CHECK_ERROR_BREAK(oCloudClient, LaunchVM(pVSD, progress1.asOutParam())); 2041 rc = showProgress(progress1);2041 hrc = showProgress(progress1); 2042 2042 CHECK_PROGRESS_ERROR_RET(progress1, (Appliance::tr("Creating the cloud instance failed")), 2043 2043 RTEXITCODE_FAILURE); 2044 2044 2045 if (SUCCEEDED( rc))2045 if (SUCCEEDED(hrc)) 2046 2046 { 2047 2047 CHECK_ERROR_BREAK(pVSD, GetDescriptionByType(VirtualSystemDescriptionType_CloudInstanceId, … … 2062 2062 } while (0); 2063 2063 2064 return SUCCEEDED( rc) ? RTEXITCODE_SUCCESS : RTEXITCODE_FAILURE;2064 return SUCCEEDED(hrc) ? RTEXITCODE_SUCCESS : RTEXITCODE_FAILURE; 2065 2065 } 2066 2066
Note:
See TracChangeset
for help on using the changeset viewer.