From 97811fe590e781271b0c996ba1b2713d27c8675b Mon Sep 17 00:00:00 2001 From: Thomas Harte Date: Tue, 15 Nov 2016 12:02:03 +0800 Subject: [PATCH] Made minor fix to ensure that a header that appears to extend beyond the end of an Oric .TAP doesn't create an ostensibly endless tape. --- Storage/Tape/Formats/OricTAP.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Storage/Tape/Formats/OricTAP.cpp b/Storage/Tape/Formats/OricTAP.cpp index 93360f005..81ff63dda 100644 --- a/Storage/Tape/Formats/OricTAP.cpp +++ b/Storage/Tape/Formats/OricTAP.cpp @@ -97,6 +97,10 @@ Tape::Pulse OricTAP::virtual_get_next_pulse() { _next_phase = Gap; } + if(feof(_file)) + { + _next_phase = End; + } _phase_counter++; break;