mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-10-01 08:46:38 +02:00
UsbMic: Fix copy on resize shrink.
This commit is contained in:
@@ -232,7 +232,7 @@ void QueueBuf::resize(u32 newSize) {
|
||||
u8 *oldbuf = buf_;
|
||||
|
||||
buf_ = new u8[newSize];
|
||||
pop(buf_, availableSize);
|
||||
pop(buf_, std::min(availableSize, newSize));
|
||||
available = availableSize;
|
||||
end = availableSize;
|
||||
capacity = newSize;
|
||||
|
||||
Reference in New Issue
Block a user