[CPU] Use window size for LZX ref_data_size
This commit is contained in:
parent
1cc06ea3e7
commit
71780838f0
|
@ -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