VirtualBox

Changeset 94080 in vbox for trunk/src/VBox/Devices/PC


Ignore:
Timestamp:
Mar 3, 2022 5:59:42 PM (3 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
150320
Message:

Device/DevPcBios: Fix long standing mostly harmless typo (will practially always produce the same result, since iEndSector is almost always 63 and there will be also one of the lowest 6 bits set in iEndHead).

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Devices/PC/DevPcBios.cpp

    r93944 r94080  
    565565        iEndHead = p[5];
    566566        iEndSector = p[6] & 63;
    567         if ((p[12] | p[13] | p[14] | p[15]) && iEndSector & iEndHead)
     567        if ((p[12] | p[13] | p[14] | p[15]) && iEndSector && iEndHead)
    568568        {
    569569            /* Assumption: partition terminates on a cylinder boundary. */
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