[pcode] Fix renaming global variable

Set a name for global variable in `updateDBVariable` from the `name` parameter
but not from the high symbol.
This commit is contained in:
saruman9 2020-04-24 16:35:44 +03:00
parent bcb825fb02
commit ccb5565180
No known key found for this signature in database
GPG key ID: 1769FEA6B860FF90

View file

@ -599,7 +599,7 @@ public class HighFunctionDBUtil {
if (name != null) {
try {
setGlobalName(highSymbol, highSymbol.getName(), source);
setGlobalName(highSymbol, name, source);
}
catch (DuplicateNameException e) {
if (isRename) {