mirror of
https://github.com/WinampDesktop/winamp.git
synced 2025-04-27 16:45:42 -04: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);
|
||||
|
||||
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)
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user