GP-6008 Corrected regression bug for VT function stringable Imported

priority check
This commit is contained in:
ghidra1
2025-09-26 11:02:35 -04:00
parent 531d53f8f8
commit 2b5ba24327
@@ -996,10 +996,12 @@ public class FunctionSignatureStringable extends Stringable {
if (first == second) {
return replaceSamePriorityNames;
}
// NOTE: If a new SourceType is added with a priority in between IMPORTED and USER_DEFINED
// VT and this code will need to change.
// Force IMPORTED to have highest priority
if (first == SourceType.IMPORTED) {
return true; // IMPORTED is highest priority
return true;
}
else if (second == SourceType.IMPORTED) {
return false;
}
return first.isHigherPriorityThan(second);
}