mirror of
https://github.com/NationalSecurityAgency/ghidra.git
synced 2025-10-03 17:59:46 +02:00
Merge remote-tracking branch 'origin/patch'
This commit is contained in:
commit
cce6807470
1 changed files with 2 additions and 3 deletions
|
@ -69,8 +69,7 @@ public class WindowsResourceReferenceAnalyzer extends AbstractAnalyzer {
|
||||||
@Override
|
@Override
|
||||||
public boolean added(Program program, AddressSetView set, TaskMonitor monitor, MessageLog log)
|
public boolean added(Program program, AddressSetView set, TaskMonitor monitor, MessageLog log)
|
||||||
throws CancelledException {
|
throws CancelledException {
|
||||||
runScript(program, set, "WindowsResourceReference.java", monitor);
|
return runScript(program, set, "WindowsResourceReference.java", monitor);
|
||||||
return true;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public boolean runScript(Program program, AddressSetView set, String scriptName,
|
public boolean runScript(Program program, AddressSetView set, String scriptName,
|
||||||
|
@ -115,7 +114,7 @@ public class WindowsResourceReferenceAnalyzer extends AbstractAnalyzer {
|
||||||
Msg.warn(this, "Unable to locate script class: " + e.getMessage(), e);
|
Msg.warn(this, "Unable to locate script class: " + e.getMessage(), e);
|
||||||
}
|
}
|
||||||
catch (CancelledException e) {
|
catch (CancelledException e) {
|
||||||
Msg.warn(this, "User cancelled script.", e);
|
// ignore
|
||||||
}
|
}
|
||||||
catch (Exception e) {
|
catch (Exception e) {
|
||||||
Msg.warn("Error running script: " + scriptName + "\n" + e.getMessage(), e);
|
Msg.warn("Error running script: " + scriptName + "\n" + e.getMessage(), e);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue