- Timestamp:
- Jan 22, 2025 10:55:54 AM (4 months ago)
- svn:sync-xref-src-repo-rev:
- 167100
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VBoxManage/VBoxManageMisc.cpp
r106061 r107886 240 240 RTEXITCODE_FAILURE); 241 241 242 hrc =showProgress(pProgress);242 showProgress(pProgress); 243 243 CHECK_PROGRESS_ERROR_RET(pProgress, (Misc::tr("Machine delete failed")), RTEXITCODE_FAILURE); 244 244 } … … 253 253 IMedium *pMedium = aMedia[i]; 254 254 if (pMedium) 255 hrc = pMedium->Close(); 256 } 257 hrc = S_OK; /** @todo r=andy Why overwriting the result from closing the medium above? */ 255 pMedium->Close(); 256 } 257 258 hrc = S_OK; /* See comment above, so just set success here. */ 258 259 } 259 260 return RTEXITCODE_SUCCESS; … … 547 548 progress.asOutParam()), 548 549 RTEXITCODE_FAILURE); 549 hrc =showProgress(progress);550 showProgress(progress); 550 551 CHECK_PROGRESS_ERROR_RET(progress, (Misc::tr("Move VM failed")), RTEXITCODE_FAILURE); 551 552 … … 759 760 progress.asOutParam()), 760 761 RTEXITCODE_FAILURE); 761 hrc =showProgress(progress);762 showProgress(progress); 762 763 CHECK_PROGRESS_ERROR_RET(progress, (Misc::tr("Clone VM failed")), RTEXITCODE_FAILURE); 763 764 … … 2007 2008 RTGETOPTUNION ValueUnion; 2008 2009 int ch; 2009 HRESULT hrc = S_OK;2010 2010 2011 2011 if (!strcmp(a->argv[0], "install")) … … 2096 2096 ComPtr<IProgress> ptrProgress; 2097 2097 CHECK_ERROR2I_RET(ptrExtPackFile, Install(fReplace, NULL, ptrProgress.asOutParam()), RTEXITCODE_FAILURE); 2098 hrc =showProgress(ptrProgress);2098 showProgress(ptrProgress); 2099 2099 CHECK_PROGRESS_ERROR_RET(ptrProgress, (Misc::tr("Failed to install \"%s\""), szPath), RTEXITCODE_FAILURE); 2100 2100 … … 2137 2137 ComPtr<IProgress> ptrProgress; 2138 2138 CHECK_ERROR2I_RET(ptrExtPackMgr, Uninstall(bstrName.raw(), fForced, NULL, ptrProgress.asOutParam()), RTEXITCODE_FAILURE); 2139 hrc =showProgress(ptrProgress);2139 showProgress(ptrProgress); 2140 2140 CHECK_PROGRESS_ERROR_RET(ptrProgress, (Misc::tr("Failed to uninstall \"%s\""), pszName), RTEXITCODE_FAILURE); 2141 2141
Note:
See TracChangeset
for help on using the changeset viewer.