Changeset 67878 in vbox
- Timestamp:
- Jul 10, 2017 2:22:42 PM (8 years ago)
- svn:sync-xref-src-repo-rev:
- 116842
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Runtime/common/fs/fatvfs.cpp
r67877 r67878 1416 1416 1417 1417 if (puDate) 1418 *puDate = (( RT_MIN(Time.i32Year, 1980) - 1980) << 9)1418 *puDate = ((uint16_t)(RT_MAX(Time.i32Year, 1980) - 1980) << 9) 1419 1419 | (Time.u8Month << 5) 1420 1420 | Time.u8MonthDay; 1421 1421 if (puTime) 1422 *puTime = ( Time.u8Hour << 11)1422 *puTime = ((uint16_t)Time.u8Hour << 11) 1423 1423 | (Time.u8Minute << 5) 1424 1424 | (Time.u8Second >> 1); … … 4929 4929 pBootSector->Bpb.Bpb331.cTracksPerCylinder = cHeads; 4930 4930 pBootSector->Bpb.Bpb331.cHiddenSectors = cHiddenSectors; 4931 pBootSector->Bpb.Bpb331.cTotalSectors32 = cTotalSectors <= UINT32_MAX ? (uint32_t)cTotalSectors : 0; 4931 /* XP barfs if both cTotalSectors32 and cTotalSectors16 are set */ 4932 pBootSector->Bpb.Bpb331.cTotalSectors32 = cTotalSectors <= UINT32_MAX && pBootSector->Bpb.Bpb331.cTotalSectors16 == 0 4933 ? (uint32_t)cTotalSectors : 0; 4932 4934 if (enmFatType != RTFSFATTYPE_FAT32) 4933 4935 {
Note:
See TracChangeset
for help on using the changeset viewer.