summaryrefslogtreecommitdiffstatshomepage
path: root/src/emu/romload.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/emu/romload.c')
-rw-r--r--src/emu/romload.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/emu/romload.c b/src/emu/romload.c
index 4ccc05da1fb..fa99559ca9a 100644
--- a/src/emu/romload.c
+++ b/src/emu/romload.c
@@ -1179,7 +1179,7 @@ int open_disk_image(emu_options &options, const game_driver *gamedrv, const rom_
static chd_error open_disk_diff(emu_options &options, const rom_entry *romp, chd_file &source, chd_file &diff_chd)
{
- astring fname(ROM_GETNAME(romp), ".dif");
+ astring fname = astring(ROM_GETNAME(romp)).cat(".dif");
/* try to open the diff */
LOG(("Opening differencing image file: %s\n", fname.c_str()));
@@ -1236,7 +1236,7 @@ static void process_disk_entries(romload_private *romdata, const char *regiontag
chd_error err;
/* make the filename of the source */
- astring filename(ROM_GETNAME(romp), ".chd");
+ astring filename = astring(ROM_GETNAME(romp)).cat(".chd");
/* first open the source drive */
LOG(("Opening disk image: %s\n", filename.c_str()));