mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-10-01 16:55:28 +02:00
UsbMic: Fix copy on resize shrink.
This commit is contained in:
1 parent
1a85370c0a
commit
ff3e70be2f
1 file changed
+1
-1
@@ -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