[CPU] Use window size for LZX ref_data_size

This commit is contained in:
emoose 2019-07-17 22:53:39 +01:00
parent 1cc06ea3e7
commit 71780838f0
No known key found for this signature in database
GPG Key ID: 3735C67912F5FF97
1 changed files with 1 additions and 1 deletions

View File

@ -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);