diff options
author | 2011-03-05 04:23:33 +0000 | |
---|---|---|
committer | 2011-03-05 04:23:33 +0000 | |
commit | 658745f3f042ea56852334ad9718eabb3fa7fba1 (patch) | |
tree | f41c36290e8f504135a87514892ba907ab3eca7a /src/emu/machine.c | |
parent | 0ac68b758f7058dfe64d406c10b909b0beb89fd3 (diff) |
Fix -no<option> for booleans
Fix crash when running with -log
Diffstat (limited to 'src/emu/machine.c')
-rw-r--r-- | src/emu/machine.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/emu/machine.c b/src/emu/machine.c index 01c9d19fc77..0ffcfcfcd96 100644 --- a/src/emu/machine.c +++ b/src/emu/machine.c @@ -361,7 +361,7 @@ int running_machine::run(bool firstrun) // if we have a logfile, set up the callback if (m_options.log()) { - m_logfile = auto_alloc(this, emu_file(NULL, OPEN_FLAG_WRITE | OPEN_FLAG_CREATE | OPEN_FLAG_CREATE_PATHS)); + m_logfile = auto_alloc(this, emu_file(OPEN_FLAG_WRITE | OPEN_FLAG_CREATE | OPEN_FLAG_CREATE_PATHS)); file_error filerr = m_logfile->open("error.log"); assert_always(filerr == FILERR_NONE, "unable to open log file"); add_logerror_callback(logfile_callback); |