VirtualBox

Changeset 62561 in vbox for trunk/src


Ignore:
Timestamp:
Jul 26, 2016 2:05:05 PM (8 years ago)
Author:
vboxsync
Message:

RTVfsMemFileCreate: process the hVfsIos parameter. (Fortunately, unused function.)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Runtime/common/vfs/vfsmemory.cpp

    r62477 r62561  
    798798        rtVfsMemFileInit(pThis, cbEstimate, RTFILE_O_READ | RTFILE_O_WRITE);
    799799
    800         *phVfsFile = hVfsFile;
    801         return VINF_SUCCESS;
     800        if (hVfsIos != NIL_RTVFSIOSTREAM)
     801        {
     802            RTVFSIOSTREAM hVfsIosDst = RTVfsFileToIoStream(hVfsFile);
     803            rc = RTVfsUtilPumpIoStreams(hVfsIos, hVfsIosDst, pThis->cbExtent);
     804            RTVfsIoStrmRelease(hVfsIosDst);
     805        }
     806
     807        if (RT_SUCCESS(rc))
     808        {
     809            *phVfsFile = hVfsFile;
     810            return VINF_SUCCESS;
     811        }
     812
     813        RTVfsFileRelease(hVfsFile);
    802814    }
    803815    return rc;
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