VirtualBox

Changeset 62754 in vbox


Ignore:
Timestamp:
Jul 30, 2016 4:36:42 PM (9 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
109332
Message:

vhdLocatorUpdate: TODO: unused variable

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Storage/VHD.cpp

    r62753 r62754  
    305305{
    306306    int      rc = VINF_SUCCESS;
    307     uint32_t cb, cbMaxLen = RT_BE2H_U32(pLocator->u32DataSpace);
     307    uint32_t cb, cbMaxLen = RT_BE2H_U32(pLocator->u32DataSpace); /* ugly. initialized variable on separate lines, please. */
    308308    void     *pvBuf = RTMemTmpAllocZ(cbMaxLen);
    309309    char     *pszTmp;
     
    403403        rc = vdIfIoIntFileWriteSync(pImage->pIfIo, pImage->pStorage,
    404404                                    RT_BE2H_U64(pLocator->u64DataOffset),
    405                                     pvBuf, cb);
     405                                    pvBuf, cb); /** @todo r=msc: 'cb' _IS_ used uninitialized in the VHD_PLATFORM_CODE_WI2K path! */
    406406
    407407    if (pvBuf)
Note: See TracChangeset for help on using the changeset viewer.

© 2025 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette