Fix getting tracks when writing raw image. Fixes #568

This commit is contained in:
2021-06-04 04:54:38 +01:00
parent 8d3277db11
commit 8b00bb1073

View File

@@ -67,7 +67,7 @@ namespace Aaru.DiscImages
? 2336
: 2048 : (int)_imageInfo.SectorSize,
TrackEndSector = _imageInfo.Sectors - 1,
TrackFile = _rawImageFilter.GetFilename(),
TrackFile = _rawImageFilter?.GetFilename() ?? _basePath,
TrackFileOffset = 0,
TrackFileType = "BINARY",
TrackRawBytesPerSector = _rawCompactDisc ? 2352 : (int)_imageInfo.SectorSize,