mirror of
https://github.com/hrydgard/ppsspp.git
synced 2025-04-02 11:01:50 -04:00
Deflt: Correct available input length.
The length of the output buffer can't have been always correct.
This commit is contained in:
parent
ba71d9b555
commit
d009203c24
1 changed files with 2 additions and 1 deletions
|
@ -38,7 +38,8 @@ static int CommonDecompress(int windowBits, u32 OutBuffer, int OutBufferLength,
|
|||
z_stream stream{};
|
||||
u8 *outBufferPtr = Memory::GetPointer(OutBuffer);
|
||||
stream.next_in = (Bytef*)Memory::GetPointer(InBuffer);
|
||||
stream.avail_in = (uInt)OutBufferLength;
|
||||
// We don't know the available length, just let it use as much as it wants.
|
||||
stream.avail_in = (uInt)Memory::ValidSize(InBuffer, Memory::g_MemorySize);
|
||||
stream.next_out = outBufferPtr;
|
||||
stream.avail_out = (uInt)OutBufferLength;
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue