DMA: Fix underflow when block_count == 0

This commit is contained in:
Connor McLaughlin 2020-03-21 00:15:42 +10:00
parent 904ab982e6
commit f4d172df2f
1 changed files with 1 additions and 1 deletions

View File

@ -356,7 +356,7 @@ void DMA::TransferChannel(Channel channel, TickCount ticks_late)
copy_to_device ? "from" : "to", current_address);
const u32 block_size = cs.block_control.request.GetBlockSize();
u32 blocks_remaining = cs.block_control.request.block_count;
u32 blocks_remaining = cs.block_control.request.GetBlockCount();
if (copy_to_device)
{