Skip to content

Commit

Permalink
refs #82 Fix instruction replacement at filter start
Browse files Browse the repository at this point in the history
  • Loading branch information
mkaring committed Sep 10, 2019
1 parent f8e2154 commit 9504a91
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Confuser.Core/DnlibUtils.cs
Original file line number Diff line number Diff line change
Expand Up @@ -433,6 +433,8 @@ public static void ReplaceReference(this CilBody body, Instruction target, Instr
eh.HandlerStart = newInstr;
if (eh.HandlerEnd == target)
eh.HandlerEnd = newInstr;
if (eh.FilterStart == target)
eh.FilterStart = newInstr;
}
foreach (Instruction instr in body.Instructions) {
if (instr.Operand == target)
Expand Down

0 comments on commit 9504a91

Please # to comment.