mirror of
https://github.com/holub/mame
synced 2025-04-23 08:49:55 +03:00
Fix for SteamLink build to compile error free (nw)
This commit is contained in:
parent
c01f6b3c35
commit
aaac8167d7
@ -158,7 +158,11 @@ bool z88cart_slot_device::call_load()
|
||||
void z88cart_slot_device::call_unload()
|
||||
{
|
||||
if (m_cart)
|
||||
memset(m_cart->get_cart_base(), 0xff, m_cart->get_cart_size());
|
||||
{
|
||||
auto cart_size = m_cart->get_cart_size();
|
||||
if (cart_size>0)
|
||||
memset(m_cart->get_cart_base(), 0xff, cart_size);
|
||||
}
|
||||
|
||||
// open the flap
|
||||
m_out_flp_cb(ASSERT_LINE);
|
||||
|
Loading…
Reference in New Issue
Block a user