[XEX] Fixed issue with patch applying failure for some executables
This commit is contained in:
parent
0deafaf9f9
commit
616dbfe34e
|
@ -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,
|
||||||
|
|
Loading…
Reference in New Issue