From 5679b0f0c7d403149653a99ce7d612f23f6edbbd Mon Sep 17 00:00:00 2001 From: gibbed Date: Sat, 24 Nov 2018 15:16:39 -0600 Subject: [PATCH] [CPU] Fix XEX2 delta patching. --- src/xenia/cpu/lzx.cc | 1 + 1 file changed, 1 insertion(+) diff --git a/src/xenia/cpu/lzx.cc b/src/xenia/cpu/lzx.cc index 98d263403..4ebd7b08d 100644 --- a/src/xenia/cpu/lzx.cc +++ b/src/xenia/cpu/lzx.cc @@ -112,6 +112,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; } result_code = lzxd_decompress(lzxd, (off_t)dest_len);