Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/detours.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -342,7 +342,7 @@ inline ULONG detour_is_code_filler(PBYTE pbCode)

struct _DETOUR_TRAMPOLINE
{
// An X64 instuction can be 15 bytes long.
// An X64 instruction can be 15 bytes long.
// In practice 11 seems to be the limit.
BYTE rbCode[30]; // target code + jmp to pbRemain.
BYTE cbCode; // size of moved target code.
Expand Down Expand Up @@ -937,7 +937,7 @@ struct _DETOUR_TRAMPOLINE
// 3 instructions to form immediate
// br or brl
//
// A theoretical maximum for rbCode is thefore 4*4*6 + 16 = 112 (another 16 for jmp to pbRemain).
// A theoretical maximum for rbCode is therefore 4*4*6 + 16 = 112 (another 16 for jmp to pbRemain).
//
// With literals, the maximum expansion is 5, including the literals: 4*4*5 + 16 = 96.
//
Expand Down