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:
Rick Gibbed 2019-07-17 17:40:41 -05:00 committed by GitHub
commit 6eed93c720
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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::memset(lzxd->window, 0, window_data_len);
std::memcpy(lzxd->window + (window_size - window_data_len), window_data, std::memcpy(lzxd->window + (window_size - window_data_len), window_data,
window_data_len); 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); result_code = lzxd_decompress(lzxd, (off_t)dest_len);