Skip to content

Commit

Permalink
Fixed: Max absolute jump size should be 8.
Browse files Browse the repository at this point in the history
  • Loading branch information
Sewer56 committed Jun 20, 2022
1 parent 97caf6e commit 1153d90
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions source/Reloaded.Hooks/AsmHook.cs
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,8 @@ namespace Reloaded.Hooks
public unsafe class AsmHook : IAsmHook
{
private static Memory.Sources.Memory _memory = CurrentProcess;

private const int MaxRelJmpSize = 5; // Maximum size of jmp opcode.
private const int MaxAbsJmpSize = 7; // Maximum size of jmp opcode.

private const int MaxAbsJmpSize = 8; // Maximum size of jmp opcode. i.e. jmp qword [qword 0xFFFFFFFF]

/// <inheritdoc />
public bool IsEnabled { get; private set; } = false;
Expand Down

0 comments on commit 1153d90

Please sign in to comment.