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/disasm.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -755,9 +755,9 @@ PBYTE CDetourDis::CopyC7(REFCOPYENTRY pEntry, PBYTE pbDst, PBYTE pbSrc)
{
(void)pEntry;

// C7 /7 is XBEGIN rel32 (or rel16 with 66 prefix).
// C7 F8 is XBEGIN rel32 (or rel16 with 66 prefix).
// It has a relative displacement that must be relocated like CALL/JMP.
if (0x38 == (0x38 & pbSrc[1])) { // reg(bits 543) of ModR/M == 111
if (pbSrc[1] == 0xF8) {
static const COPYENTRY ce = /* c7 /7 */ { 6, 4, 0, 2, 0, &CDetourDis::CopyBytes };
return (this->*ce.pfCopy)(&ce, pbDst, pbSrc);
}
Expand Down