Changeset 47665 in vbox
- Timestamp:
- Aug 12, 2013 10:11:42 AM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Storage/VDIfVfs.cpp
r47515 r47665 86 86 * This may end up being a little more complicated, esp. wrt VERR_EOF. 87 87 */ 88 if (off == -1) 89 off = pThis->offCurPos; 88 90 int rc = vdIfIoFileReadSync(pThis->pVDIfsIo, pThis->pvStorage, off, pSgBuf[0].pvSegCur, pSgBuf->paSegs[0].cbSeg, pcbRead); 89 91 if (RT_SUCCESS(rc)) 90 pThis->offCurPos = (off == -1 ? pThis->offCurPos : off) 91 + (pcbRead ? *pcbRead : pSgBuf->paSegs[0].cbSeg); 92 pThis->offCurPos = off + (pcbRead ? *pcbRead : pSgBuf->paSegs[0].cbSeg); 92 93 return rc; 93 94 } … … 105 106 * This may end up being a little more complicated, esp. wrt VERR_EOF. 106 107 */ 108 if (off == -1) 109 off = pThis->offCurPos; 107 110 int rc = vdIfIoFileWriteSync(pThis->pVDIfsIo, pThis->pvStorage, off, pSgBuf[0].pvSegCur, pSgBuf->paSegs[0].cbSeg, pcbWritten); 108 111 if (RT_SUCCESS(rc)) 109 pThis->offCurPos = (off == -1 ? pThis->offCurPos : off) 110 + (pcbWritten ? *pcbWritten : pSgBuf->paSegs[0].cbSeg); 112 pThis->offCurPos = off + (pcbWritten ? *pcbWritten : pSgBuf->paSegs[0].cbSeg); 111 113 return rc; 112 114 }
Note:
See TracChangeset
for help on using the changeset viewer.