summaryrefslogtreecommitdiffstatshomepage
path: root/src/devices/bus/odyssey2/slot.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/devices/bus/odyssey2/slot.cpp')
-rw-r--r--src/devices/bus/odyssey2/slot.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/devices/bus/odyssey2/slot.cpp b/src/devices/bus/odyssey2/slot.cpp
index ced47e99955..2abeb58737a 100644
--- a/src/devices/bus/odyssey2/slot.cpp
+++ b/src/devices/bus/odyssey2/slot.cpp
@@ -182,10 +182,10 @@ std::string o2_cart_slot_device::get_default_card_software(get_default_card_soft
{
if (hook.image_file())
{
- const char *slot_string;
- u32 size = hook.image_file()->size();
- int type = (size == 0x4000) ? O2_RALLY : O2_STD;
- slot_string = o2_get_slot(type);
+ uint64_t size;
+ hook.image_file()->length(size); // FIXME: check error return
+ int const type = (size == 0x4000) ? O2_RALLY : O2_STD;
+ char const *const slot_string = o2_get_slot(type);
return std::string(slot_string);
}