mirror of
https://github.com/NationalSecurityAgency/ghidra.git
synced 2026-06-01 10:45:01 +08:00
Merge remote-tracking branch 'origin/patch' into Ghidra_12.1
This commit is contained in:
+2
-10
@@ -822,11 +822,7 @@ public class FunctionEditorModel {
|
|||||||
|
|
||||||
for (ParamInfo paramInfo : functionData.getParameters()) {
|
for (ParamInfo paramInfo : functionData.getParameters()) {
|
||||||
Parameter param = function.getParameter(paramInfo.getOrdinal());
|
Parameter param = function.getParameter(paramInfo.getOrdinal());
|
||||||
if (param != null) {
|
if (param != null && !param.isAutoParameter()) {
|
||||||
if (param.getSymbol().isDeleted()) {
|
|
||||||
// concurrent removal of param - must do full update
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
param.setName(paramInfo.getName(), SourceType.USER_DEFINED);
|
param.setName(paramInfo.getName(), SourceType.USER_DEFINED);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -860,11 +856,7 @@ public class FunctionEditorModel {
|
|||||||
: FunctionUpdateType.DYNAMIC_STORAGE_FORMAL_PARAMS,
|
: FunctionUpdateType.DYNAMIC_STORAGE_FORMAL_PARAMS,
|
||||||
true, sigSource);
|
true, sigSource);
|
||||||
}
|
}
|
||||||
catch (DuplicateNameException e) {
|
catch (Exception e) {
|
||||||
Msg.showError(this, null, "Function Edit Error", e.getMessage());
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
catch (InvalidInputException e) {
|
|
||||||
Msg.showError(this, null, "Function Edit Error", e.getMessage());
|
Msg.showError(this, null, "Function Edit Error", e.getMessage());
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user