Skip to content

Ghidra is a software reverse engineering (SRE) framework

GP-2164 - Updated incorrect tool status message when pasting bytes

dragonmacher50320cfde73c
diff --git a/Ghidra/Features/Base/src/main/java/ghidra/app/util/ByteCopier.java b/Ghidra/Features/Base/src/main/java/ghidra/app/util/ByteCopier.java
index 691249e6e2..2054bd43d4 100644
--- a/Ghidra/Features/Base/src/main/java/ghidra/app/util/ByteCopier.java
+++ b/Ghidra/Features/Base/src/main/java/ghidra/app/util/ByteCopier.java
@@ -415,7 +415,7 @@ public abstract class ByteCopier {
return false;
}
- // Ask the user before pasting a string into the program. Since having a string in
+ // Ask the user before pasting a string into the program. Since having a string in
// the clipboard is so common, this is to prevent an accidental paste.
if (!confirmPaste(validString)) {
return true; // the user cancelled; the command is successful
@@ -447,7 +447,7 @@ public abstract class ByteCopier {
}
address = address.next();
}
- return foundError;
+ return !foundError;
}
private boolean confirmPaste(String validString) {