Skip to content

Commit

Permalink
[#8] Support for MBD image files of MB-02 disk interface (Part 25: Fi…
Browse files Browse the repository at this point in the history
…xed uninitialized value)
  • Loading branch information
tomas-nestorovic committed Apr 18, 2020
1 parent 1229b55 commit 7dc1778
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Main/src/BSDOS.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -444,9 +444,10 @@
file.reserved2=0x401;
file.integrityCheckpoint1 = file.integrityCheckpoint2 = special;
file.firstSector=firstSector;
file.dataLength=firstSector<bsdos->formatBoot.GetCountOfAllSectors(); // has at least one Byte if FirstSector is valid
CFatPath dummy( bsdos->formatBoot.GetCountOfAllSectors() );
bsdos->GetFileFatPath( this, dummy );
file.dataLength=BSDOS_SECTOR_LENGTH_STD*dummy.GetNumberOfItems();
file.dataLength=BSDOS_SECTOR_LENGTH_STD*dummy.GetNumberOfItems(); // estimated DataLength computed from FAT
}

BYTE CBSDOS308::TDirectoryEntry::GetDirNameChecksum() const{
Expand Down

0 comments on commit 7dc1778

Please sign in to comment.