mirror of
https://github.com/dingusdev/dingusppc.git
synced 2025-08-06 10:25:27 +00:00
floppyimg: Add null floppy image converter check.
This commit is contained in:
@@ -311,7 +311,7 @@ FloppyImgConverter* open_floppy_image(std::string& img_path)
|
||||
fconv = new RawFloppyImg(img_path);
|
||||
}
|
||||
|
||||
if (fconv->calc_phys_params()) {
|
||||
if (fconv && fconv->calc_phys_params()) {
|
||||
delete fconv;
|
||||
return nullptr;
|
||||
}
|
||||
|
Reference in New Issue
Block a user