mirror of
https://github.com/NationalSecurityAgency/ghidra.git
synced 2025-10-03 17:59:46 +02:00
GP-5661 - Fix SourceType issue in Apply Data Archives
This commit is contained in:
parent
a1b6084c88
commit
b15b51e48e
1 changed files with 10 additions and 9 deletions
|
@ -259,7 +259,8 @@ public class ApplyFunctionDataTypesCmd extends BackgroundCommand<Program> {
|
||||||
}
|
}
|
||||||
|
|
||||||
SourceType mostTrusted = getMostTrustedParameterSource(func);
|
SourceType mostTrusted = getMostTrustedParameterSource(func);
|
||||||
if (alwaysReplace || !source.isLowerPriorityThan(mostTrusted)) {
|
// Do not replace function if one with same SourceType exists
|
||||||
|
if (alwaysReplace || source.isHigherPriorityThan(mostTrusted)) {
|
||||||
applyFunction(sym, fdef);
|
applyFunction(sym, fdef);
|
||||||
}
|
}
|
||||||
return;
|
return;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue