mirror of
https://github.com/RetroDECK/Duckstation.git
synced 2025-01-17 22:25:37 +00:00
DMA: Fix underflow when block_count == 0
This commit is contained in:
parent
904ab982e6
commit
f4d172df2f
|
@ -356,7 +356,7 @@ void DMA::TransferChannel(Channel channel, TickCount ticks_late)
|
||||||
copy_to_device ? "from" : "to", current_address);
|
copy_to_device ? "from" : "to", current_address);
|
||||||
|
|
||||||
const u32 block_size = cs.block_control.request.GetBlockSize();
|
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)
|
if (copy_to_device)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue