VirtualBox

Changeset 69906 in vbox for trunk/src/VBox/Runtime


Ignore:
Timestamp:
Dec 3, 2017 1:40:28 AM (7 years ago)
Author:
vboxsync
Message:

rtDvmVfsFile_Write+Read: Fixed handling of current offset (off=-1).

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Runtime/common/dvm/dvmvfs.cpp

    r69844 r69906  
    248248    if (cbLeftToRead > 0)
    249249    {
    250         rc = RTDvmVolumeRead(pThis->hVol, (uint64_t)off, pSgBuf->paSegs[0].pvSeg, cbLeftToRead);
     250        rc = RTDvmVolumeRead(pThis->hVol, offUnsigned, pSgBuf->paSegs[0].pvSeg, cbLeftToRead);
    251251        if (RT_SUCCESS(rc))
    252252            offUnsigned += cbLeftToRead;
     
    303303    if (cbLeftToWrite > 0)
    304304    {
    305         rc = RTDvmVolumeWrite(pThis->hVol, (uint64_t)off, pSgBuf->paSegs[0].pvSeg, cbLeftToWrite);
     305        rc = RTDvmVolumeWrite(pThis->hVol, offUnsigned, pSgBuf->paSegs[0].pvSeg, cbLeftToWrite);
    306306        if (RT_SUCCESS(rc))
    307307            offUnsigned += cbLeftToWrite;
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette