Added nopping of semi-overwritten command after splicing call

This commit is contained in:
Berserker 2019-06-13 00:23:22 +03:00
parent c605df838c
commit 420ddd7c15

View File

@ -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;