Changeset 33816 in vbox for trunk/src/VBox/Storage/DMG.cpp
- Timestamp:
- Nov 5, 2010 10:11:03 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Storage/DMG.cpp
r33773 r33816 751 751 752 752 default: 753 //AssertMsgFailed(("%x\n", u32Kind));753 AssertMsgFailed(("%x\n", u32Kind)); 754 754 break; 755 755 } … … 1634 1634 if (RT_SUCCESS(rc)) 1635 1635 { 1636 dmgUdifFtrFile2HostEndian(&Ftr);1637 1638 1636 /* 1639 1637 * Do we recognize this stuff? Does it look valid? 1640 1638 */ 1641 if ( Ftr.u32Magic == DMGUDIF_MAGIC1642 && Ftr.u32Version == DMGUDIF_VER_CURRENT1643 && Ftr.cbFooter == sizeof(Ftr))1639 if ( Ftr.u32Magic == RT_H2BE_U32(DMGUDIF_MAGIC) 1640 && Ftr.u32Version == RT_H2BE_U32(DMGUDIF_VER_CURRENT) 1641 && Ftr.cbFooter == RT_H2BE_U32(sizeof(Ftr))) 1644 1642 { 1643 dmgUdifFtrFile2HostEndian(&Ftr); 1645 1644 if (dmgUdifFtrIsValid(&Ftr, offFtr)) 1646 1645 {
Note:
See TracChangeset
for help on using the changeset viewer.