VirtualBox

Changeset 21008 in vbox for trunk/src/VBox/Devices/Storage


Ignore:
Timestamp:
Jun 28, 2009 8:41:46 PM (16 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
49222
Message:

VHD: Forgot to remove the alignment

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Devices/Storage/VHDHDDCore.cpp

    r21007 r21008  
    915915DECLINLINE(bool) vhdBlockBitmapSectorContainsData(PVHDIMAGE pImage, uint32_t cBlockBitmapEntry)
    916916{
    917     uint32_t iBitmap = (cBlockBitmapEntry / 8) & ~3; /* Byte in the block bitmap. */
     917    uint32_t iBitmap = (cBlockBitmapEntry / 8); /* Byte in the block bitmap. */
    918918
    919919    /*
     
    935935DECLINLINE(void) vhdBlockBitmapSectorSet(PVHDIMAGE pImage, uint32_t cBlockBitmapEntry)
    936936{
    937     uint32_t iBitmap = (cBlockBitmapEntry / 8) & ~3; /* Byte in the block bitmap. */
     937    uint32_t iBitmap = (cBlockBitmapEntry / 8); /* Byte in the block bitmap. */
    938938
    939939    /*
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