summaryrefslogtreecommitdiffstatshomepage
path: root/src/devices/imagedev/chd_cd.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/devices/imagedev/chd_cd.cpp')
-rw-r--r--src/devices/imagedev/chd_cd.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/devices/imagedev/chd_cd.cpp b/src/devices/imagedev/chd_cd.cpp
index d512670226e..e3a036fd0a4 100644
--- a/src/devices/imagedev/chd_cd.cpp
+++ b/src/devices/imagedev/chd_cd.cpp
@@ -107,7 +107,7 @@ image_init_result cdrom_image_device::call_load()
if (chd) {
m_cdrom_handle = cdrom_open( chd );
} else {
- m_cdrom_handle = cdrom_open(m_image_name.c_str());
+ m_cdrom_handle = cdrom_open(filename());
}
if ( ! m_cdrom_handle )
goto error;