VirtualBox

Changeset 36636 in vbox for trunk


Ignore:
Timestamp:
Apr 9, 2011 12:17:08 PM (14 years ago)
Author:
vboxsync
Message:

VHD: Bugfix for compact

File:
1 edited

Legend:

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

    r36633 r36636  
    16281628                   size_t cbBuf, size_t *pcbActuallyRead)
    16291629{
    1630     LogFlowFunc(("pBackendData=%p uOffset=%#llx pvBuf=%p cbBuf=%u pcbActuallyRead=%p\n", pBackendData, uOffset, pvBuf, cbBuf, pcbActuallyRead));
     1630    LogFlowFunc(("pBackendData=%p uOffset=%#llu pvBuf=%p cbBuf=%u pcbActuallyRead=%p\n", pBackendData, uOffset, pvBuf, cbBuf, pcbActuallyRead));
    16311631    PVHDIMAGE pImage = (PVHDIMAGE)pBackendData;
    16321632    int rc = VINF_SUCCESS;
     
    30123012                        break;
    30133013
    3014                     paBat[uBlockData] = i*pImage->cSectorsPerDataBlock + offBlocksStart;
     3014                    paBat[uBlockData] = i*(pImage->cSectorsPerDataBlock + pImage->cDataBlockBitmapSectors) + offBlocksStart;
    30153015
    30163016                    /* Truncate the file but leave enough room for the footer to avoid
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