missed some renames

This commit is contained in:
Folkert 2022-09-22 22:18:18 +02:00
parent fae1d96474
commit fd5e0c9dda
No known key found for this signature in database
GPG key ID: 1F17F6FFD112B97C

View file

@ -493,9 +493,9 @@ fn redirect_dummy_dll_functions(
) {
// it could be that a symbol exposed by the app is not used by the host. We must skip unused symbols
let mut targets = function_definition_vas.iter();
'outer: for (i, name) in imports.iter().enumerate() {
for (target_name, target_va) in targets.by_ref() {
if name == target_name {
'outer: for (i, host_name) in imports.iter().enumerate() {
for (roc_app_target_name, roc_app_target_va) in targets.by_ref() {
if host_name == roc_app_target_name {
// addresses are 64-bit values
let address_bytes = &mut executable[thunks_start_offset + i * 8..][..8];
@ -506,7 +506,7 @@ fn redirect_dummy_dll_functions(
}
// update the address to a function VA
address_bytes.copy_from_slice(&target_va.to_le_bytes());
address_bytes.copy_from_slice(&roc_app_target_va.to_le_bytes());
continue 'outer;
}