summaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
author Fabio Priuli <etabeta78@users.noreply.github.com>2009-10-27 21:12:11 +0000
committer Fabio Priuli <etabeta78@users.noreply.github.com>2009-10-27 21:12:11 +0000
commit6870ce76e006244081a8292b511754f2d284bdfb (patch)
tree2427e845db9bbe279d8805c363bab11af0729c6d
parent493b1d4bc1033037005d18d3acd4178e7dabc7f9 (diff)
Fix for MT03424: chihiro, triforce: Access Violation before typing OK
-rw-r--r--src/mame/machine/naomibd.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/mame/machine/naomibd.c b/src/mame/machine/naomibd.c
index bff19e3a67b..5d41ec79c4b 100644
--- a/src/mame/machine/naomibd.c
+++ b/src/mame/machine/naomibd.c
@@ -1025,7 +1025,8 @@ static DEVICE_START( naomibd )
v->memory = (UINT8 *)memory_region(device->machine, config->regiontag);
v->gdromchd = get_disk_handle(device->machine, config->gdromregiontag);
v->picdata = (UINT8 *)memory_region(device->machine, config->picregiontag);
- load_rom_gdrom(device->machine, v);
+ if (v->memory != NULL && v->gdromchd != NULL && v->picdata != NULL)
+ load_rom_gdrom(device->machine, v);
break;
default: