diff options
Diffstat (limited to 'src/lib/util/dvdrom.cpp')
-rw-r--r-- | src/lib/util/dvdrom.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lib/util/dvdrom.cpp b/src/lib/util/dvdrom.cpp index 36dc29e7215..0b2379ef7e6 100644 --- a/src/lib/util/dvdrom.cpp +++ b/src/lib/util/dvdrom.cpp @@ -58,8 +58,8 @@ dvdrom_file::dvdrom_file(chd_file *_chd) throw nullptr; /* check it's actually a DVD-ROM */ - if (!chd->is_dvd()) - throw nullptr; + if (std::error_condition err = chd->check_is_dvd()) + throw err; sector_count = chd->unit_count(); } |