- Timestamp:
- Mar 10, 2020 4:59:51 PM (5 years ago)
- svn:sync-xref-src-repo-rev:
- 136397
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Main/src-client/GuestSessionImplTasks.cpp
r83248 r83250 2254 2254 RTVFSFILE hVfsFileIso; 2255 2255 rc = RTVfsFileOpenNormal(mSource.c_str(), RTFILE_O_OPEN | RTFILE_O_READ | RTFILE_O_DENY_WRITE, &hVfsFileIso); 2256 if (RT_SUCCESS(rc)) 2256 if (RT_FAILURE(rc)) 2257 { 2258 hr = setProgressErrorMsg(VBOX_E_IPRT_ERROR, 2259 Utf8StrFmt(GuestSession::tr("Unable to open Guest Additions .ISO file \"%s\": %Rrc"), 2260 mSource.c_str(), rc)); 2261 } 2262 else 2257 2263 { 2258 2264 RTVFS hVfsIso; … … 2261 2267 { 2262 2268 hr = setProgressErrorMsg(VBOX_E_IPRT_ERROR, 2263 Utf8StrFmt(GuestSession::tr("Unable to open Guest Additions .ISO file \"%s\": %Rrc"), 2264 mSource.c_str(), rc)); 2269 Utf8StrFmt(GuestSession::tr("Unable to open file as ISO 9660 file system volume: %Rrc"), rc)); 2265 2270 } 2266 2271 else … … 2556 2561 if (!mProgress.isNull()) /* Progress object is optional. */ 2557 2562 { 2563 #ifdef VBOX_STRICT 2564 /* If we forgot to set the progress object accordingly, let us know. */ 2565 HRESULT rcProgress; 2566 AssertMsg( SUCCEEDED(mProgress->COMGETTER(ResultCode(&rcProgress))) 2567 && FAILED(rcProgress), ("Task indicated an error (%Rrc), but progress did not indicate this (%Rhrc)\n", 2568 rc, rcProgress)); 2569 #endif 2558 2570 com::ProgressErrorInfo errorInfo(mProgress); 2559 2571 if ( errorInfo.isFullAvailable()
Note:
See TracChangeset
for help on using the changeset viewer.