DVDThread: Don't show an error message for all 0-length reads

This commit is contained in:
JosJuice 2017-09-03 14:53:29 +02:00
parent 0341a6052b
commit 3528c93edf
1 changed files with 1 additions and 1 deletions

View File

@ -326,7 +326,7 @@ static void FinishRead(u64 id, s64 cycles_late)
(CoreTiming::GetTicks() - request.time_started_ticks) /
(SystemTimers::GetTicksPerSecond() / 1000000));
if (buffer.empty())
if (buffer.size() != request.length)
{
PanicAlertT("The disc could not be read (at 0x%" PRIx64 " - 0x%" PRIx64 ").",
request.dvd_offset, request.dvd_offset + request.length);