From 50556f16b263776382bc2ea5c118e83e17079b85 Mon Sep 17 00:00:00 2001 From: Fabio Priuli Date: Mon, 27 May 2013 15:01:34 +0000 Subject: [PATCH] fixed a couple of copy'n'paste mistakes. nw. --- src/mess/machine/gba_slot.c | 2 +- src/mess/machine/md_slot.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/mess/machine/gba_slot.c b/src/mess/machine/gba_slot.c index 15c0d8465e2..ee615fd7ad6 100644 --- a/src/mess/machine/gba_slot.c +++ b/src/mess/machine/gba_slot.c @@ -52,7 +52,7 @@ void device_gba_cart_interface::nvram_alloc(running_machine &machine, UINT32 siz { m_nvram = auto_alloc_array_clear(machine, UINT32, size/sizeof(UINT32)); m_nvram_size = size; - state_save_register_item_pointer(machine, "GBA_CART", this->device().tag(), 0, m_nvram, m_nvram_size); + state_save_register_item_pointer(machine, "GBA_CART", this->device().tag(), 0, m_nvram, m_nvram_size/sizeof(UINT32)); } } diff --git a/src/mess/machine/md_slot.c b/src/mess/machine/md_slot.c index 4f96934c9d8..72b9a6741d4 100644 --- a/src/mess/machine/md_slot.c +++ b/src/mess/machine/md_slot.c @@ -103,7 +103,7 @@ void device_md_cart_interface::nvram_alloc(running_machine &machine, size_t size { m_nvram = auto_alloc_array_clear(machine, UINT16, size/sizeof(UINT16)); m_nvram_size = size; - state_save_register_item_pointer(machine, "MD_CART", this->device().tag(), 0, m_nvram, m_nvram_size); + state_save_register_item_pointer(machine, "MD_CART", this->device().tag(), 0, m_nvram, m_nvram_size/sizeof(UINT16)); } }