VirtualBox

Ignore:
Timestamp:
May 8, 2024 12:59:09 PM (7 months ago)
Author:
vboxsync
Message:

Runtime/common/zip/pkzipvfs.cpp: Remove redundant condition in if statement, return real status code instead of always VINF_SUCCESS, bugref:3409

File:
1 edited

Legend:

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

    r100908 r104554  
    533533        *pcbCompressed  = rtZipPkzipReaderCompressed(pThis);
    534534    }
    535     return VINF_SUCCESS;
     535    return rc;
    536536}
    537537
     
    875875    if (!cbToRead)
    876876        return rc;
    877     if (   pThis->fPassZipType
    878         && cbToRead > 0)
    879     {
     877    if (pThis->fPassZipType)
     878    {
     879        Assert(cbToRead);
     880
    880881        uint8_t *pu8Buf = (uint8_t*)pvBuf;
    881882        pu8Buf[0] = pThis->enmZipType;
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