| 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 |
| r7812 | r7813 | |
|---|---|---|
| 225 | 225 | { |
| 226 | 226 | if (nvram_file == NULL) |
| 227 | 227 | 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); | |
| 229 | 231 | } |
| 230 | 232 | } |
| 231 | 233 |
| Previous | 15994 Revisions | Next |