Changeset 77038 in vbox for trunk/src/VBox
- Timestamp:
- Jan 30, 2019 11:16:17 AM (6 years ago)
- svn:sync-xref-src-repo-rev:
- 128481
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Main/src-client/GuestSessionImplTasks.cpp
r77036 r77038 177 177 && !fCompleted) 178 178 { 179 #ifdef VBOX_STRICT 180 ULONG uCurOp; mProgress->COMGETTER(Operation(&uCurOp)); 181 ULONG cOps; mProgress->COMGETTER(OperationCount(&cOps)); 182 AssertMsg(uCurOp + 1 /* Zero-based */ == cOps, ("Not all operations done yet (%u/%u)\n", uCurOp + 1, cOps)); 183 #endif 179 184 HRESULT hr = mProgress->i_notifyComplete(S_OK); 180 185 if (FAILED(hr)) … … 1473 1478 Utf8Str strFirstOp = mDest + mVecLists[0]->mVecEntries[0]->strPath; 1474 1479 hr = pProgress->init(static_cast<IGuestSession*>(mSession), Bstr(mDesc).raw(), 1475 TRUE /* aCancelable */, cOperations /* Number of operations */, Bstr(strFirstOp).raw());1480 TRUE /* aCancelable */, cOperations + 1 /* Number of operations */, Bstr(strFirstOp).raw()); 1476 1481 } 1477 1482 else /* If no operations have been defined, go with an "empty" progress object when will be used for error handling. */ … … 1536 1541 strDstAbs.findReplace('\\', '/'); 1537 1542 } 1543 1544 mProgress->SetNextOperation(Bstr(strSrcAbs).raw(), 1); 1538 1545 1539 1546 switch (pEntry->fMode & RTFS_TYPE_MASK) … … 1577 1584 break; 1578 1585 1579 mProgress->SetNextOperation(Bstr(strSrcAbs).raw(), 1);1580 1581 1586 ++itEntry; 1582 1587 } … … 1725 1730 Assert(mVecLists[0]->mVecEntries.size()); 1726 1731 1727 Utf8Str strFirstOp = mDest + mVecLists[0]->mVecEntries[0]->strPath;1728 1729 1732 hr = pProgress->init(static_cast<IGuestSession*>(mSession), Bstr(mDesc).raw(), 1730 TRUE /* aCancelable */, cOperations /* Number of operations */,1731 Bstr( strFirstOp).raw());1733 TRUE /* aCancelable */, cOperations + 1 /* Number of operations */, 1734 Bstr(mDesc).raw()); 1732 1735 } 1733 1736 else /* If no operations have been defined, go with an "empty" progress object when will be used for error handling. */ … … 1801 1804 strDstAbs += pEntry->strPath; 1802 1805 } 1806 1807 mProgress->SetNextOperation(Bstr(strSrcAbs).raw(), 1); 1803 1808 1804 1809 switch (pEntry->fMode & RTFS_TYPE_MASK) … … 1840 1845 if (RT_FAILURE(rc)) 1841 1846 break; 1842 1843 mProgress->SetNextOperation(Bstr(strSrcAbs).raw(), 1);1844 1847 1845 1848 ++itEntry;
Note:
See TracChangeset
for help on using the changeset viewer.