From 420ddd7c154a0ff74845368209bcaa864ce89e2d Mon Sep 17 00:00:00 2001 From: Berserker Date: Thu, 13 Jun 2019 00:23:22 +0300 Subject: [PATCH] Added nopping of semi-overwritten command after splicing call --- VfsPatching.pas | 1 + 1 file changed, 1 insertion(+) diff --git a/VfsPatching.pas b/VfsPatching.pas index 6cf124b..31cf23e 100644 --- a/VfsPatching.pas +++ b/VfsPatching.pas @@ -159,6 +159,7 @@ begin // Create and apply hook at target function start p.Clear(); p.Jump(PatchForge.JMP, SpliceBridge); + p.Nop(OverwrittenCodeSize - p.Pos); if AppliedPatch <> nil then begin AppliedPatch.Addr := OrigFunc;