mirror of
https://github.com/holub/mame
synced 2025-04-22 08:22:15 +03:00
Fixed ROM fill routine
This commit is contained in:
parent
8cc41c96e5
commit
6e90aa90fd
@ -450,7 +450,7 @@ image_init_result cococart_slot_device::call_load()
|
||||
|
||||
while (read_length < cart_length)
|
||||
{
|
||||
offs_t len = std::min(read_length, m_cart->get_cart_size() - read_length);
|
||||
offs_t len = std::min(read_length, cart_length - read_length);
|
||||
memcpy(base + read_length, base, len);
|
||||
read_length += len;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user