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;