VirtualBox

Changeset 46980 in vbox for trunk/src/VBox/Main


Ignore:
Timestamp:
Jul 4, 2013 11:38:28 AM (12 years ago)
Author:
vboxsync
Message:

Deprecated the old manifest API. r=bird: IPRT does NOT use ugly C++ references, it pointers directly - no cloak and dagger pointers thank you. Please don't reformat if expressions into unreadability. RTDIGESTTYPE_UNKNOWN should be RTDIGESTTYPE_INVALID and there is actually no need to set output variables on failure, just check the status code.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Main/src-server/ApplianceImplImport.cpp

    r46972 r46980  
    965965                    uint64_t maxFileSize = _1M;
    966966                    size_t cbRead = 0;
    967                     void  *pBuf;
     967                    void  *pBuf; /** @todo r=bird: You leak this buffer! throwing stuff is evil. */
    968968
    969969                    vrc = RTFileGetSize(pFile, &cbFile);
     
    993993                    RTFileClose(pFile);
    994994
    995                     RTDIGESTTYPE digestType = RTDIGESTTYPE_UNKNOWN;
    996                     vrc = RTManifestVerifyDigestType(pBuf, cbRead, digestType);
     995                    RTDIGESTTYPE digestType;
     996                    vrc = RTManifestVerifyDigestType(pBuf, cbRead, &digestType);
    997997
    998998                    if (RT_FAILURE(vrc))
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