summaryrefslogtreecommitdiffstatshomepage
path: root/src/devices/bus/nes/nes_slot.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/devices/bus/nes/nes_slot.cpp')
-rw-r--r--src/devices/bus/nes/nes_slot.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/devices/bus/nes/nes_slot.cpp b/src/devices/bus/nes/nes_slot.cpp
index 3d873e4902d..d7df07d7693 100644
--- a/src/devices/bus/nes/nes_slot.cpp
+++ b/src/devices/bus/nes/nes_slot.cpp
@@ -799,8 +799,7 @@ std::string nes_cart_slot_device::get_default_card_software(get_default_card_sof
hook.image_file()->length(len); // FIXME: check error return, guard against excessively large files
std::vector<uint8_t> rom(len);
- size_t actual;
- hook.image_file()->read(&rom[0], len, actual); // FIXME: check error return or read returning short
+ read(*hook.image_file(), &rom[0], len); // FIXME: check error return or read returning short
const char *slot_string = "nrom";
if ((rom[0] == 'N') && (rom[1] == 'E') && (rom[2] == 'S'))