Changeset 47515 in vbox for trunk/src/VBox/Storage/VDIfVfs.cpp
- Timestamp:
- Aug 1, 2013 6:29:36 PM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Storage/VDIfVfs.cpp
r47345 r47515 88 88 int rc = vdIfIoFileReadSync(pThis->pVDIfsIo, pThis->pvStorage, off, pSgBuf[0].pvSegCur, pSgBuf->paSegs[0].cbSeg, pcbRead); 89 89 if (RT_SUCCESS(rc)) 90 pThis->offCurPos = off + (pcbRead ? *pcbRead : pSgBuf->paSegs[0].cbSeg); 90 pThis->offCurPos = (off == -1 ? pThis->offCurPos : off) 91 + (pcbRead ? *pcbRead : pSgBuf->paSegs[0].cbSeg); 91 92 return rc; 92 93 } … … 106 107 int rc = vdIfIoFileWriteSync(pThis->pVDIfsIo, pThis->pvStorage, off, pSgBuf[0].pvSegCur, pSgBuf->paSegs[0].cbSeg, pcbWritten); 107 108 if (RT_SUCCESS(rc)) 108 pThis->offCurPos = off + (pcbWritten ? *pcbWritten : pSgBuf->paSegs[0].cbSeg); 109 pThis->offCurPos = (off == -1 ? pThis->offCurPos : off) 110 + (pcbWritten ? *pcbWritten : pSgBuf->paSegs[0].cbSeg); 109 111 return rc; 110 112 }
Note:
See TracChangeset
for help on using the changeset viewer.