Merge pull request #1399 from emoose/lzxdelta-fix
[CPU] Use window size for LZX ref_data_size, fixes some problematic XEXP patches.
This commit is contained in:
commit
6eed93c720
|
@ -113,7 +113,7 @@ int lzx_decompress(const void* lzx_data, size_t lzx_len, void* dest,
|
|||
std::memset(lzxd->window, 0, window_data_len);
|
||||
std::memcpy(lzxd->window + (window_size - window_data_len), window_data,
|
||||
window_data_len);
|
||||
lzxd->ref_data_size = (uint32_t)window_data_len;
|
||||
lzxd->ref_data_size = window_size;
|
||||
}
|
||||
|
||||
result_code = lzxd_decompress(lzxd, (off_t)dest_len);
|
||||
|
|
Loading…
Reference in New Issue