diff --git a/src/emu/debug/debugcpu.cpp b/src/emu/debug/debugcpu.cpp index 2773c66fda5..3335f19ff3e 100644 --- a/src/emu/debug/debugcpu.cpp +++ b/src/emu/debug/debugcpu.cpp @@ -893,7 +893,7 @@ void debugger_cpu::process_source_file() if (m_source_file && !m_source_file->good()) { - if (m_source_file->fail()) + if (!m_source_file->eof()) m_machine.debugger().console().printf("I/O error, script processing terminated\n"); m_source_file.reset(); }