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 @@ -975,9 +975,9 @@ PBYTE CDetourDis::CopyRex2(REFCOPYENTRY pEntry, PBYTE pbDst, PBYTE pbSrc)
pbOut = (this->*pEntry2->pfCopy)(pEntry2, pbDst + 2, pbSrc + 2);
}

// JMPABS: REX2 with payload=0x00 (M=0, W=0, all ext bits 0) and opcode A1.
// JMPABS: REX2 with M=0, W=0, and opcode A1. Other payload bits are ignored.
// This is an absolute 64-bit jump whose target is the 8-byte immediate.
if (payload == 0x00 && pbSrc[2] == 0xA1) {
if ((payload & 0x88) == 0x00 && pbSrc[2] == 0xA1) {
*m_ppbTarget = *(UNALIGNED PBYTE*)&pbSrc[3];
}

Expand Down