Previous 15994 Revisions Next

r7813 Thursday 15th April, 2010 at 14:27:48 UTC by Firewave
[JAGUAR] Fixed crash on exit when no image is mounted
[src/mess/drivers]jaguar.c

src/mess/drivers/jaguar.c
r7812r7813
225225      {
226226         if (nvram_file == NULL)
227227            nvram_file = jaguar_nvram_fopen(machine, OPEN_FLAG_WRITE | OPEN_FLAG_CREATE | OPEN_FLAG_CREATE_PATHS);
228         (*nvram)(device, nvram_file, 1);
228         // check nvram_file to avoid crash when no image is mounted or cannot be created
229         if (nvram_file)
230            (*nvram)(device, nvram_file, 1);
229231      }
230232   }
231233

Previous 15994 Revisions Next


© 1998-2018 The MESS Team