VirtualBox

Ignore:
Timestamp:
May 8, 2020 11:54:10 AM (5 years ago)
Author:
vboxsync
Message:

IPRT: Added two flags to the %Rhxs formatter type to control the separator. Default is space, the ' flag changes it to ':' and the # flag removes the separator. bugref:9699

File:
1 edited

Legend:

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

    r84192 r84207  
    21342134    AssertPtrReturn(phVfsFss, VERR_INVALID_HANDLE);
    21352135    *phVfsFss = NIL_RTVFSFSSTREAM;
    2136     AssertPtrReturn(hVfsFile != NIL_RTVFSFILE, VERR_INVALID_HANDLE);
     2136    AssertReturn(hVfsFile != NIL_RTVFSFILE, VERR_INVALID_HANDLE);
    21372137    AssertReturn(enmFormat > RTZIPTARFORMAT_INVALID && enmFormat < RTZIPTARFORMAT_END, VERR_INVALID_PARAMETER);
    21382138    AssertReturn(!(fFlags & ~RTZIPTAR_C_VALID_MASK), VERR_INVALID_FLAGS);
     
    21592159    size_t const            cbThis = sizeof(*pThis) + (fFlags & RTZIPTAR_C_UPDATE ? sizeof(*pThis->pRead) : 0);
    21602160    RTVFSFSSTREAM           hVfsFss;
    2161     int rc = RTVfsNewFsStream(&g_rtZipTarFssOps, cbThis, NIL_RTVFS, NIL_RTVFSLOCK, RTFILE_O_WRITE,
     2161    int rc = RTVfsNewFsStream(&g_rtZipTarFssOps, cbThis, NIL_RTVFS, NIL_RTVFSLOCK,
     2162                              fFlags & RTZIPTAR_C_UPDATE ? RTFILE_O_READWRITE : RTFILE_O_WRITE,
    21622163                              &hVfsFss, (void **)&pThis);
    21632164    if (RT_SUCCESS(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