VirtualBox

Changeset 44786 in vbox for trunk


Ignore:
Timestamp:
Feb 21, 2013 3:58:31 PM (12 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
83899
Message:

VHD: Fix for the Hyper-V incompatibility fix, some places still used the sector count for calculations

File:
1 edited

Legend:

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

    r44673 r44786  
    300300{
    301301    int      rc = VINF_SUCCESS;
    302     uint32_t cb, cbMaxLen = RT_BE2H_U32(pLocator->u32DataSpace) * VHD_SECTOR_SIZE;
     302    uint32_t cb, cbMaxLen = RT_BE2H_U32(pLocator->u32DataSpace);
    303303    void     *pvBuf = RTMemTmpAllocZ(cbMaxLen);
    304304    char     *pszTmp;
     
    395395        rc = vdIfIoIntFileWriteSync(pImage->pIfIo, pImage->pStorage,
    396396                                    RT_BE2H_U64(pLocator->u64DataOffset),
    397                                     pvBuf, RT_BE2H_U32(pLocator->u32DataSpace) * VHD_SECTOR_SIZE);
     397                                    pvBuf, cb);
    398398
    399399    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