From 0e74c235e608f43fb272b6bda2a1fab7cfc2cbf2 Mon Sep 17 00:00:00 2001 From: Ratin Gao Date: Mon, 8 Jun 2026 23:13:34 +0800 Subject: [PATCH] Fix typos in detours comments --- src/detours.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/detours.cpp b/src/detours.cpp index 91d840d1..71660c89 100644 --- a/src/detours.cpp +++ b/src/detours.cpp @@ -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. @@ -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. //