diff options
author | R. Belmont <rb6502@users.noreply.github.com> | 2017-06-24 19:47:18 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-06-24 19:47:18 -0400 |
commit | 1a06955f3e0bf1cc13748d0119369476c590f974 (patch) | |
tree | fc6b61da2cd00055e35d0eff3f6aab9313a63c4e | |
parent | f1e04947f807a9cfece728175824330008c5a33b (diff) | |
parent | d3c5f2939de4b0d4f731898844dcafbc8e64734b (diff) |
Merge pull request #2403 from npwoods/fix_source_eof_error
Fixed an issue that could cause the debugger 'source' command to falsely display I/O error
-rw-r--r-- | src/emu/debug/debugcpu.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
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(); } |