Skip to content

Commit

Permalink
Fixed CD builder hd emul boot
Browse files Browse the repository at this point in the history
  • Loading branch information
LTRData committed Mar 3, 2024
1 parent bb90ea6 commit de44d50
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Library/DiscUtils.Iso9660/VfsCDReader.cs
Original file line number Diff line number Diff line change
Expand Up @@ -445,7 +445,7 @@ public static long DetectSectorCountFromPartitionTable(Stream stream)
{
var partition = disk.Partitions.Single();

var imageSize = (partition.LastSector + 1) * Sizes.Sector;
var imageSize = partition.LastSector + 1;

return imageSize;
}
Expand Down
2 changes: 1 addition & 1 deletion Tests/LibraryTests/Iso9660/BuilderTest.cs
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ public void AddFileBytes()
[Fact]
public void BootImage()
{
var bytes = new byte[3 * Sizes.OneMiB];
var bytes = new byte[3133440];

for(var i = 0; i < bytes.Length; ++i)
{
Expand Down

0 comments on commit de44d50

Please sign in to comment.