mirror of
https://github.com/TomHarte/CLK.git
synced 2024-11-26 23:52:26 +00:00
Merge pull request #385 from TomHarte/OricHFE
Corrects nullptr references in the CPC static analyser.
This commit is contained in:
commit
2118b9c0cd
@ -223,13 +223,13 @@ void Analyser::Static::AmstradCPC::AddTargets(const Media &media, std::vector<st
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Failing that check for a boot sector.
|
// Failing that check for a boot sector.
|
||||||
if(CheckBootSector(target->media.disks.front(), target)) {
|
if(CheckBootSector(disk, target)) {
|
||||||
target->media.disks.push_back(disk);
|
target->media.disks.push_back(disk);
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
// Failing that check for a system catalogue.
|
// Failing that check for a system catalogue.
|
||||||
std::unique_ptr<Storage::Disk::CPM::Catalogue> system_catalogue = Storage::Disk::CPM::GetCatalogue(target->media.disks.front(), system_format);
|
std::unique_ptr<Storage::Disk::CPM::Catalogue> system_catalogue = Storage::Disk::CPM::GetCatalogue(disk, system_format);
|
||||||
if(system_catalogue) {
|
if(system_catalogue) {
|
||||||
InspectCatalogue(*system_catalogue, target);
|
InspectCatalogue(*system_catalogue, target);
|
||||||
target->media.disks.push_back(disk);
|
target->media.disks.push_back(disk);
|
||||||
|
Loading…
Reference in New Issue
Block a user