Skip to content
This repository has been archived by the owner on Apr 21, 2022. It is now read-only.

Commit

Permalink
Distinguish between the pattern errors
Browse files Browse the repository at this point in the history
  • Loading branch information
fifty-six committed Jul 24, 2021
1 parent 7baa027 commit 4d9a19d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main.zig
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ pub fn caught_main() !void {
// We want to prevent writing over code which isn't actually part
// of what we want to patch.
if (ind < push_ind - 10) {
return error.PatternNotFound;
return error.PatchAlreadyApplied;
}

// Replace 2-byte jnz with nop, jmp
Expand Down

0 comments on commit 4d9a19d

Please sign in to comment.