centralize metadata file IO

This commit is contained in:
Folkert 2022-09-24 14:49:23 +02:00
parent 51f8bf496f
commit f1e05f6d13
No known key found for this signature in database
GPG key ID: 1F17F6FFD112B97C
2 changed files with 33 additions and 23 deletions

View file

@ -2040,7 +2040,12 @@ pub fn surgery(
let app_parsing_duration = app_parsing_start.elapsed();
if let target_lexicon::BinaryFormat::Coff = target.binary_format {
return crate::pe::surgery_pe(out_filename, metadata_filename, app_data, verbose);
return crate::pe::surgery_pe(
Path::new(out_filename),
Path::new(metadata_filename),
app_data,
verbose,
);
}
let total_start = Instant::now();