From 616dbfe34e28bd1aaaab440c92923f3641f132d4 Mon Sep 17 00:00:00 2001 From: Gliniak Date: Wed, 4 Sep 2024 21:04:47 +0200 Subject: [PATCH] [XEX] Fixed issue with patch applying failure for some executables --- src/xenia/cpu/xex_module.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/xenia/cpu/xex_module.cc b/src/xenia/cpu/xex_module.cc index bec353f5e..772a2439a 100644 --- a/src/xenia/cpu/xex_module.cc +++ b/src/xenia/cpu/xex_module.cc @@ -304,7 +304,7 @@ int XexModule::ApplyPatch(XexModule* module) { assert_not_null(file_format_header); // Apply header patch... - uint32_t headerpatch_size = patch_header->info.compressed_len + 0xC; + uint32_t headerpatch_size = patch_header->size; int result_code = lzxdelta_apply_patch( &patch_header->info, headerpatch_size,