Changeset 67229 in vbox for trunk/src/VBox/Runtime
- Timestamp:
- Jun 2, 2017 11:18:28 AM (8 years ago)
- svn:sync-xref-src-repo-rev:
- 115918
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Runtime/common/vfs/vfsprogress.cpp
r67228 r67229 87 87 uint64_t cbDone = RT_MIN(pThis->cbCurrentlyRead, pThis->cbExpectedRead) 88 88 + RT_MIN(pThis->cbCurrentlyWritten, pThis->cbExpectedWritten); 89 unsigned uPct = cbDone / pThis->cbExpected;89 unsigned uPct = cbDone * 100 / pThis->cbExpected; 90 90 if (uPct == pThis->uCurPct) 91 91 return pThis->rcCanceled; … … 456 456 457 457 uint32_t cRefs = RTVfsIoStrmRetain(hVfsIos); 458 AssertReturn(cRefs == UINT32_MAX, VERR_INVALID_HANDLE);458 AssertReturn(cRefs != UINT32_MAX, VERR_INVALID_HANDLE); 459 459 460 460 PRTVFSPROGRESSFILE pThis; … … 491 491 492 492 uint32_t cRefs = RTVfsFileRetain(hVfsFile); 493 AssertReturn(cRefs == UINT32_MAX, VERR_INVALID_HANDLE);493 AssertReturn(cRefs != UINT32_MAX, VERR_INVALID_HANDLE); 494 494 495 495 RTVFSIOSTREAM hVfsIos = RTVfsFileToIoStream(hVfsFile);
Note:
See TracChangeset
for help on using the changeset viewer.