mirror of
https://github.com/mamedev/mame.git
synced 2024-11-16 07:48:32 +01:00
Merge pull request #6620 from tlindner/fix-coco-rom-load
Fix CoCo cartridge loading for less than 16k carts.
This commit is contained in:
commit
849c4d46c7
1 changed files with 1 additions and 1 deletions
|
@ -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 a new issue