summaryrefslogtreecommitdiffstatshomepage
path: root/src/emu/machine.c
diff options
context:
space:
mode:
author Aaron Giles <aaron@aarongiles.com>2011-03-05 04:23:33 +0000
committer Aaron Giles <aaron@aarongiles.com>2011-03-05 04:23:33 +0000
commit658745f3f042ea56852334ad9718eabb3fa7fba1 (patch)
treef41c36290e8f504135a87514892ba907ab3eca7a /src/emu/machine.c
parent0ac68b758f7058dfe64d406c10b909b0beb89fd3 (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.c2
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);