[DVD] Signedness fix in realistic timing path

This commit is contained in:
Matt Mastracci 2016-02-14 14:19:53 -07:00
parent cafc879b7c
commit 4e6f58d82e

View File

@ -1301,7 +1301,7 @@ u64 SimulateDiscReadTime(u64 offset, u32 length)
u64 disk_read_duration = CalculateRawDiscReadTime(offset, length) +
SystemTimers::GetTicksPerSecond() / 1000 * DISC_ACCESS_TIME_MS;
if (offset + length - s_last_read_offset > 1024 * 1024)
if (offset + length > s_last_read_offset + 1024 * 1024)
{
// No buffer; just use the simple seek time + read time.
DEBUG_LOG(DVDINTERFACE, "Seeking %" PRId64 " bytes",