Changeset 29948 in vbox
- Timestamp:
- Jun 1, 2010 12:55:23 PM (15 years ago)
- svn:sync-xref-src-repo-rev:
- 62228
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Main/ProgressProxyImpl.cpp
r29937 r29948 176 176 va_list va; 177 177 va_start(va, aText); 178 HRESULThrc = Progress::notifyCompleteV(aResultCode, aIID, aComponent, aText, va);178 hrc = Progress::notifyCompleteV(aResultCode, aIID, aComponent, aText, va); 179 179 va_end(va); 180 180 } … … 321 321 /* Detect if the other progress object was canceled. */ 322 322 BOOL fCanceled; 323 hrc = pOtherProgress->COMGETTER(Canceled)(&fCanceled); AssertComRC(hrc);323 hrc = pOtherProgress->COMGETTER(Canceled)(&fCanceled); 324 324 if (FAILED(hrc)) 325 325 fCanceled = FALSE; … … 335 335 /* Has it completed? */ 336 336 BOOL fCompleted; 337 hrc = pOtherProgress->COMGETTER(Completed)(&fCompleted); AssertComRC(hrc);337 hrc = pOtherProgress->COMGETTER(Completed)(&fCompleted); 338 338 if (FAILED(hrc)) 339 339 fCompleted = TRUE; … … 343 343 /* Check the result. */ 344 344 LONG hrcResult; 345 hrc = pOtherProgress->COMGETTER(ResultCode)(&hrcResult); AssertComRC(hrc);345 hrc = pOtherProgress->COMGETTER(ResultCode)(&hrcResult); 346 346 if (FAILED(hrc)) 347 347 hrcResult = hrc; … … 356 356 { 357 357 Bstr bstrIID; 358 hrc = ptrErrorInfo->COMGETTER(InterfaceID)(bstrIID.asOutParam()); 358 hrc = ptrErrorInfo->COMGETTER(InterfaceID)(bstrIID.asOutParam()); AssertComRC(hrc); 359 359 if (FAILED(hrc)) 360 360 bstrIID.setNull(); 361 361 362 362 Bstr bstrComponent; 363 hrc = ptrErrorInfo->COMGETTER(Component)(bstrComponent.asOutParam()); 363 hrc = ptrErrorInfo->COMGETTER(Component)(bstrComponent.asOutParam()); AssertComRC(hrc); 364 364 if (FAILED(hrc)) 365 365 bstrComponent = "failed"; 366 366 367 367 Bstr bstrText; 368 hrc = ptrErrorInfo->COMGETTER(Text)(bstrText.asOutParam()); 368 hrc = ptrErrorInfo->COMGETTER(Text)(bstrText.asOutParam()); AssertComRC(hrc); 369 369 if (FAILED(hrc)) 370 370 bstrText = "<failed>"; … … 377 377 { 378 378 LogFlowThisFunc(("ErrorInfo failed with hrc=%Rhrc; hrcResult=%Rhrc\n", hrc, hrcResult)); 379 Progress::notifyComplete((HRESULT)hrcResult); 379 Progress::notifyComplete((HRESULT)hrcResult, COM_IIDOF(IProgress), Bstr("ProgressProxy"), 380 tr("No error info")); 380 381 } 381 382 } … … 391 392 * Did cancelable state change (point of no return)? 392 393 */ 393 if (mCancelable )394 if (mCancelable && !mCompleted && !mCanceled) 394 395 { 395 396 BOOL fCancelable;
Note:
See TracChangeset
for help on using the changeset viewer.