mirror of
https://github.com/NationalSecurityAgency/ghidra.git
synced 2024-11-21 19:42:14 +00:00
Fixed bug seen when searching for uses of an enum field
This commit is contained in:
parent
6805c6bc20
commit
1e0db13430
@ -1097,6 +1097,9 @@ public final class ReferenceUtils {
|
||||
Enum enumm = (Enum) dt;
|
||||
List<String> names = getEnumNames(data, enumm);
|
||||
for (String name : names) {
|
||||
if (!enumm.contains(name)) {
|
||||
continue;
|
||||
}
|
||||
long value = enumm.getValue(name);
|
||||
if (matcher.matches(name, (int) value)) {
|
||||
return true;
|
||||
|
Loading…
Reference in New Issue
Block a user