VirtualBox

Ignore:
Timestamp:
May 30, 2017 7:25:31 PM (8 years ago)
Author:
vboxsync
Message:

IPRT/vfstarwriter.cpp: Early version of API for pushing file data into the FS stream.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Runtime/common/zip/tarvfswriter.cpp

    r67149 r67150  
    521521     * Deal with simple non-seeking write first.
    522522     */
     523    size_t cbWritten = 0;
    523524    Assert(pPush->offCurrent <= pPush->cbExpected);
    524525    Assert(pPush->offCurrent <= pPush->cbCurrent);
     
    530531                         pPush->offCurrent, cbToWrite, pPush->offCurrent + cbToWrite, pPush->cbExpected),
    531532                        VERR_DISK_FULL);
    532         size_t cbWritten = 0;
    533533        rc = RTVfsIoStrmWrite(pParent->hVfsIos, pvToWrite, cbToWrite, fBlocking, &cbWritten);
    534534        if (RT_SUCCESS(rc))
     
    591591        if (RT_SUCCESS(rc))
    592592        {
    593             size_t cbWritten = 0;
    594593            rc = RTVfsIoStrmWrite(pParent->hVfsIos, pvToWrite, cbToWrite, fBlocking, &cbWritten);
    595594            if (RT_SUCCESS(rc))
     
    608607     * Fatal errors get down here, non-fatal ones returns earlier.
    609608     */
     609    if (pcbWritten)
     610        *pcbWritten = cbWritten;
    610611    if (RT_SUCCESS(rc))
    611612        return VINF_SUCCESS;
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