[XEX] Fixed issue with patch applying failure for some executables

This commit is contained in:
Gliniak 2024-09-04 21:04:47 +02:00
parent 0deafaf9f9
commit 616dbfe34e
1 changed files with 1 additions and 1 deletions

View File

@ -304,7 +304,7 @@ int XexModule::ApplyPatch(XexModule* module) {
assert_not_null(file_format_header); assert_not_null(file_format_header);
// Apply header patch... // 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( int result_code = lzxdelta_apply_patch(
&patch_header->info, headerpatch_size, &patch_header->info, headerpatch_size,