mirror of
https://github.com/libretro/RetroArch
synced 2025-03-17 10:21:26 +00:00
Fix bug introduced in f13cf9 regarding non-compressed ZIPs (#15230)
This happens on platforms with HAVE_MMAP (Linux/Mac) and with ZIPs that contain uncompressed files.
This commit is contained in:
parent
bce958780d
commit
5fec32649f
@ -184,7 +184,7 @@ static int zlib_stream_decompress_data_to_file_iterate(
|
||||
{
|
||||
/* Simply copy the data to the output buffer */
|
||||
memcpy(zip_context->decompressed_data,
|
||||
zip_context->state->archive_mmap_data,
|
||||
zip_context->state->archive_mmap_data + (size_t)zip_context->fdoffset,
|
||||
zip_context->usize);
|
||||
}
|
||||
else
|
||||
|
Loading…
x
Reference in New Issue
Block a user